Displaying 20 results from an estimated 8000 matches similar to: "merge two vectors of the same length into one?"
2002 Dec 04
1
Help: add arrows on a filled.contour figure
Dear All
I would like to use filled.contour to plot something with arrows on it. I did it in this way:
filled.contour(1:nx,1:nz,u,col=gray(rev((0:20/20))))
for (j in zseq ) for (i in xseq) arrows(i, j, i+u[i,j],j+w[i,j],length=angleng,angle=angarrow,code=2, lwd=1,col="black")
The peoblem is that the arrows use the whole device area, including the key on the right hand side of the
2002 Dec 05
2
Help: draw 3 filled.contour on one page
Dear All,
I tried to draw 3 filled.contour plots on one page, but failed. It returns
"Error in plot.new() : Figure margins too large".
Can anyone help me to do this.
BTW, does anyone has the experience to draw a isosurface with R?
Dr Zhiqiang Cui
School of Geography and Environmental Sciences
The University of Birmingham
Edgbaston, Birmingham
B15 2TT
2006 Apr 09
3
Instant Message?
Hi all,
My client softphone supports IM feature. Does any warmheated expert know if
Asterisk can support IM also at server side? If so, is there any
related documents or weblinks?
--
Thanks & Best Regards!
Steven Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060409/f131bc17/attachment.htm
2005 Jun 02
3
merge large matrices
Dear List
I have two large matrices A and B. Both have the same dimensions, let's
say 20k x 30k. About half the cells of B are missing. Now I'm looking
for an efficient way to merge them, so that the missing values in B are
replaced by the corresponding values of A.
Matrix A
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 4 5 6
merged with Matrix B
[,1] [,2] [,3]
[1,] 10 NA NA
[2,] NA 50 60
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
That does clarify for me that you're missing a step: I didn't clearly
follow your description at first.
corrplot expects a correlation matrix, not your original data. You need to
use cor() first.
That's pretty clear in the documentation. See for instance the examples:
data(mtcars)
M <- cor(mtcars)
corrplot(M)
Sarah
On Sat, Mar 17, 2018 at 12:00 PM Shivi Bhatia <shivipmp82 at
2018 Mar 17
3
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
Hi Sarah,
Thank you for your help.
I tried using CR1<-as.matrix(CR1) but gives error Error in corrplot(CR1,
method = "circle") : The matrix is not in [-1, 1]!. I am using a corrplot
library.
Please find the reproducible example:
dput(head(CR1,10))
structure(c(26L, 46L, 39L, 38L, 47L, 59L, 56L, 61L, 43L, 60L,
78L, 63L, 2L, 58L, 8L, 1L, 1L, 9L, 11L, 2L, 1037500L, 46747L,
346300L,
2012 Feb 02
4
an unusual use for R
I thought some of you might be amused by this.
In my non-work time, I'm an avid weaver and teacher of weaving. I'm
working on a project involving creating many detailed weaving
patterns, so I wrote R code to automate it.
Details here:
http://stringpage.com/blog/?p=822
If the overlap between R users and avid tablet weavers turns out to be
>> 1, I'll polish it up and turn it
2005 Oct 04
2
newbie questions - looping through hierarchial datafille
Dear List,
Im new to R - making a transition from SAS. I have a space delimited file
with the following structure. Each line in the datafile is identified by
the first letter.
A = Inventory (Inventory)
X = Stratum (Stratum_no Total Ye=year established)
P = Plot (Plot_no age slope= species)
T = Tree (tree_no frequency)
L = Leader (leader diameter height)
F = Feature (start_height finish_height
2010 Jul 29
3
[PATCH 1/1] O2net: Disallow o2net accept connection request from itself.
Currently, o2net_accept_one() is allowed to accept a connection from
listening node itself, such a fake connection will not be successfully
established due to no handshake detected afterwards, and later end up
with triggering connecting worker in a loop.
We're going to fix this by treating such connection request as 'invalid',
since we've got no chance of requesting connection
2005 Nov 28
1
Is samba or a kernel bug causing my FC4 server to crash?
I've got a fully updated Fedora Core 4 server crashing hard every week or
two. I use Samba via smbmount and autofs to read & delete log files on 17 XP
boxs and 6 NT4SP6 boxes as well as a couple other Windows files servers
every 5 minutes. The first indication of a problem I get is smbmount stops
working, then the server becomes unresponsive to the point where only a
power slam will fix
2013 Apr 18
6
count each answer category in each column
Hey,
Is it possible that R can calculate each options under each column and
return a summary table?
Suppose I have a table like this:
Gender Age Rate
Female 0-10 Good
Male 0-10 Good
Female 11-20 Bad
Male 11-20 Bad
Male >20 N/A
I want to have a summary table including the information that how many
answers in each category, sth like this:
X
2010 Nov 08
6
XEN large scale cluster
Dear All,
We are preparing amount 400 servers to deploy a large scale XEN cluster; I
am looking for the best solution for that, these are some things I need to
resolve:
1) 400 servers use raid-1, each server will have more than 100GB free
disk space, I want to combine all of these for the cluster''s storage, so, it
need to install the distribute file system;
2) How to
2009 May 21
3
VNC connection to DomU got black screen
Hi all,
I installed xen-3.3.1 and configured two DomU with 2.6.18.8-xen kernel. Now
the DomU1 and DomU2 could work and the network is ok. But I used the
filesystem image from jailtime, so the X-Window mode can''t work. Thus, I
tried two ways to make the GUI-mode work:
(1) yum install X-Window in Guest OS, and the GUI configuration Wizard shows
up. When done with the configuration, the
2010 Nov 19
5
[PATCH 1/1] Ocfs2: Teach 'coherency=full' O_DIRECT writes to correctly up_read i_alloc_sem.
Former logic of ocfs2_file_aio_write() was a bit stricky to unlock the rw_lock
and i_alloc_sem, by using some private bits in struct 'iocb' to communite with
ocfs2_dio_end_io(), it did work before we introduce the patch of supporting
'coherency=full,buffered' option, since rw_lock and i_alloc_sem were never
acquired both at the same time, no mattar we doing buffered or direct IO or
2007 Sep 06
3
Warning message with aggregate function
Dear all,
When I use aggregate function as:
attach(warpbreaks)
aggregate(warpbreaks[, 1], list(wool = wool, tension = tension), sum)
The results are right but I get a warning message:
"number of items to replace is not a multiple of replacement length."
BTW: I use R version 2.4.1 in Ubuntu 7.04.
Your kind solutions will be great appreciated.
Best wishes
Yours, sincerely,
Xingwang
2019 Dec 17
10
[PATCH 0/5] KVM: arm64: vcpu preempted check support
From: Zengruan Ye <yezengruan at huawei.com>
This patch set aims to support the vcpu_is_preempted() functionality
under KVM/arm64, which allowing the guest to obtain the vcpu is
currently running or not. This will enhance lock performance on
overcommitted hosts (more runnable vcpus than physical cpus in the
system) as doing busy waits for preempted vcpus will hurt system
performance far
2019 Dec 17
10
[PATCH 0/5] KVM: arm64: vcpu preempted check support
From: Zengruan Ye <yezengruan at huawei.com>
This patch set aims to support the vcpu_is_preempted() functionality
under KVM/arm64, which allowing the guest to obtain the vcpu is
currently running or not. This will enhance lock performance on
overcommitted hosts (more runnable vcpus than physical cpus in the
system) as doing busy waits for preempted vcpus will hurt system
performance far
2010 Oct 09
2
[PATCH 1/2] Ocfs2: Add a mount option "coherency=*" for O_DIRECT writes.
Currently, default behavior of O_DIRECT writes was allowing
concurrent writing among nodes, no cluster coherency guaranteed
(no EX locks was taken), it hurts buffered reads on other nodes
by reading stale data from cache.
The new mount option introduce a chance to choose two different
behaviors for O_DIRECT writes:
* coherency=full, as the default value, will disallow
concurrent
2012 Feb 08
4
String position character replacement
Hi,
Is there a way to efficiently replace specified indices in a string with another character? For example, if I had a vector of strings such as
[1] "hellohowareyoudoing"
[2] "imgoodhowareyou"
[3] "goodandyou"
[4] "yesimgoodijusttoldyou"
[5] "ohyesthatsright"
and had a list of positions that I want to replace with the character "-"
2003 Aug 14
2
Problems with adding Windows printer drivers to a Samba box
Hi all!
Here is an interesting problem:
I have installed Mandrake 9.0 on two server boxes, both of which are
running very happily and have been for a year now (and a year or two
before that on earlier versions of Mandrake). I was able to successfully
add printer drivers to one of these boxes (as it was the only one
running Samba at the time, called MAIN) without any problems.
Yesterday, I