Displaying 20 results from an estimated 9000 matches similar to: "na.omit() (PR#889)"
2005 Mar 29
4
slide show with R
Trying to use R to build an interactive "slide show", to be displayed on a
projector. The purpose of the presentation is to show how one could
construct a simple graph using R. It is meant as a general overview rather
than as detailed instruction.
For example, something like the following sequence of commands. At
lecture time, I want the interpreter to read these commands one at a
2013 Mar 05
1
different colors for two wireframe spheres
Dear List,
I have the code below adapted from the lattice-package examples to draw two spheres. I would now like to give
both different surface colors, e.g. one red and one blue.
## 3-D surface parametrized on a 2-D grid
n <- 10
tx <- matrix(seq(-pi, pi, length.out = 2*n), 2*n, n)
ty <- matrix(seq(-pi, pi, length.out = n) / 2, 2*n, n, byrow = T)
xx <-
2012 Aug 21
2
apply question
This works, where zz is a dataframe:
for(i in 1:nrow(zz)) {
zzz[i,1]<-paste(zz[i,1],zz[i,2],sep="_")
}
I would like to use "apply" to concatentate two columns of text along with
a separator.
How?
Chet
[[alternative HTML version deleted]]
2009 Jan 29
2
Stacking data
Hi
I have data in the format below
Age V1 V2 V3 V4
23646 45190 50333 55166 56271
26174 35535 38227 37911 41184
27723 25691 25712 26144 26398
and would like to sort it as follows
Age values ind
23646 45190 V1
26174 35535 V1
27723 25691 V2
2011 Apr 07
1
transform() on selective names. Is it possible?
Hi all,
I am whitening my data:
# code begins
N <- 300
M <- 2
x <- matrix(data=rnorm(N*M, 0, 3)-10, ncol=M, nrow=N)
y <- matrix(c(1,-2,-2,1), ncol=M, nrow=M)
z <- data.frame(x %*% y)
colnames(z) <- c('x','y')
par(mfrow=c(1,3))
plot(z, pch=5, col="blue")
whiten <- function(x) { (x-mean(x))/sd(x) }
zz <- transform(z, x=whiten(x), y=whiten(y))
2007 Jul 16
1
Dict-server mysql module error
hi all
when i setup plugin quota by quota = dict: mysql:/etc/quota-dict.conf i get
the folowing error:
deliver(zzzz at zzzz.zz): Unknown dict module: mysql
deliver(zzzz at zzz.zz): dict quota: dict_init() failed
quota-dict.conf:
connect = host=localhost dbname=zzzz user=zzzz password=zzzz
table = mailbox
select_field = quota
where_field = maildir
username_field = username
dovecot.conf:
#
2015 Jul 01
1
[PATCH 1/2] utils: Add a test of the guestfs_int_drive_name function.
This function didn't have a unit test before.
---
src/test-utils.c | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/src/test-utils.c b/src/test-utils.c
index 8e1491f..c5e2f08 100644
--- a/src/test-utils.c
+++ b/src/test-utils.c
@@ -1,5 +1,5 @@
/* libguestfs
- * Copyright (C) 2014 Red Hat Inc.
+ * Copyright (C) 2014-2015 Red Hat Inc.
*
*
2024 May 24
1
Samba suddenly acting strangely
On 5/23/24 22:58, Andrew Bartlett wrote:
> Can you post your smb.conf.
Actually no, as I don't have *one* smb.conf.
I'll add three of them (the last three were I had this problem) at the
end of this email.
As you can see they are not exactly identical.
> Have you used any of our fallback VFS modules instead of xattrs?
I'd say not, but see the smb.confs.
> (This would
2009 Feb 13
0
help with reshaping (no file attached)
MCI
A1
A2
A13
A14
A23
A24
A33
A34
Grouped together
56766
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
6459
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
31233
2007 May 27
1
na.approx and columns with NA's
Hi,
I have a object 'zoo':
dim(zz)
[1] 720 5551
where some columns only have NA's values (representing land data in a
sea surface temperature dataset) I find straightforward the use of
'na.approx' for individual columns from the zz matrix, but when applied
to the whole matrix:
zz.approx<-na.approx(zz)
Erro en approx(along[!na], y[!na], along[na], ...) :
need
2009 May 03
12
DNAT Question
Hi list,
I have a shorewall installed on 2 interfaces which also has multiple
static public IP. Let''s say I have 1.2.3.4 and 1.2.3.5. I have assigned
nat with:
1.2.3.4 eth0 11.22.33.4 no no
But then I have a situation where I need 11.22.33.44 to connect to a
host in the net zone and appears also to be 1.2.3.5 not only 1.2.3.4.
How to do it? TIA
Willy
2011 Apr 05
0
Changing parameter in local fdr R code
I am using Efron's local fdr procedure. But, I want to change the null from
N(0,1) to N(0, 0.002). I can access the function but I have no idea what to
change. In other words, I want nulltype to be N(0,0.002) instead of N(0,1)
in his function. Anyone has any ideas. This is his code for the local fdr:
function (zz, bre = 120, df = 7, pct = 0, pct0 = 1/4, nulltype = 1,
type = 0, plot = 1,
2011 Mar 28
1
SiS: Attachment file larger than expected
I recently set up SiS and imported a large chunk of mail.
I've noticed one or two instances of this in the logs:
Mar 28 09:03:50 mail dovecot: imap(xxx at yyy.zz): Error: Attachment file /mailstore/attachments/ce/73/ce737a45fe07495e2ae6466f9e381a30d5ec300406f11269d79bd5608cc0c922-822b3d2df67f8e4d7f5000009501e12a larger than expected (252218)
Mar 28 14:52:34 mail dovecot: pop3(zzz at xxx.yy):
2015 Jul 01
2
[PATCH v2 0/2] utils: Add guestfs_int_drive_index and unit test.
Since v1:
- Test error cases in the unit test of guestfs_int_drive_index.
Rich.
2017 Jan 06
3
Issue with handling of 480 DND
Hi List,
we're calling a sip phone from our Asterisk Server, and try to add logic
depending on the dialstatus
Stripped down example;
exten = 494XXXXXXXXX,n,Dial(SIP/4120089,15,w)
exten = 494XXXXXXXXX,n,Goto(98-${DIALSTATUS},1)
exten = 494XXXXXXXXX,n,Hangup()
.....
exten = 98-BUSY,1,NoOp(Busy)
exten = 98-BUSY,n,ExecIf($["${Voicemail}" =
2010 Jun 10
1
Re :help to aggregate data
Dear All,
I have the data some thing like this, I am showing here three days data
only:
> dummy.data <- read.table(file='dummy.txt',sep='', header=TRUE)
> dummy.data
StDate Domaindesc Logins
1 05/01/10 xxx 10
2 05/01/10 xxx 45
3 05/01/10 xxx 2
4 05/01/10 yyy 45
5 05/01/10 yyy 20
6 05/01/10 yyy
2005 Nov 22
1
Iproute2 src mangling problems
Hi,
I''m having an issue with changing the source address of packets
origininating from a specific user using a combination of iptables and
iproute2. We want to change packets originating from a specific
service so that they originate from that service''s IP address, so that
we can move it to a different physical server and have the packets
appear to come from the same
2009 Aug 10
2
strsplit a matrix
Dear all,
I am trying to split a matrix into 2 as efficiently as possible.
It is a character matrix:
1 2 3
1 "2-271" "2-367" "1-79"
2 "2-282" "2-378" "1-90"
3 "2-281" "2-377" "1-89"
I want to make 2 matrices from this, as succinctly and efficiently as
possible.
I've tried such
2009 Jun 08
2
help to speed up loops in r
Hi
i am using a script which involves the following loop. It attempts to reduce a data frame(zz) of 95000 * 41 down to a data frame (averagedreplicates) of 95000 * 21 by averaging the replicate values as you can see in the script below. This script however is very slow (2days). Any suggestions to speed it up.
NB I have also tried using rowMeans rather than adding the 2 values and dividing by 2.
2011 Jan 05
1
Asterisk replying to wrong port for NOTIFY messages
See the following SIP trace.
Where in the world does Asterisk get port 1025 to respond to?
This is asterisk 1.6.x.
Thanks.
-- James
<--- SIP read from zzz.zzz.zzz.44:9363 --->
NOTIFY sip:pbx1.mydomain.com SIP/2.0^M
Via: SIP/2.0/UDP 192.168.1.140:9363;branch=z9hG4bK-b9a860d3^M
From: "xxx-xxx-xxxx" <sip:xxxxxxxxxx at pbx1.mydomain.com>;tag=467525dd6fac949do0^M
To: