Hi,
How can I use formatC to convert 600 to 6e5 and not 6e+05 ?
> formatC(60)
[1] "6e+05"
> formatC(60, format="e", digit=0)
[1] "6e+05"
-Original Message-
From: Uwe Ligges [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008 17:11
To: Ng Stanley
Cc: r-help
Subject: Re:
Second try :P
I have matrix A of 4 cols:
1 a 0 4
1 b 5 8
2 a 0 3
2 b 4 7
And matrix B of 3 cols:
1 2 3
2 4 5
2 0 3
1 7 8
I would like to assign (a or b) to the rows of matrix B. The rules are that
in each row of matrix B, the 1st value must match the 1st col. of matrix A,
2nd and 3rd val
Hi,
Any one is porting or has ported prtools (http://www.prtools.org/) to R ?
Thanks
Stanley
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.htm
That works beautfully. Why using test<=0.2 || test >0.3 gives error ?
-Original Message-
From: Gabor Csardi [mailto:[EMAIL PROTECTED]
Sent: Monday, February 11, 2008 18:27
To: Ng Stanley
Cc: r-help
Subject: Re: [R] Conditional rows
which(apply(test<=0.2, 1, all))
See ?which, ?all, an
Now I understand why 3 by 3 data2_1 works and not the 3x10 data2_1.
How can I precompute thr and pass it safely to function(x) for the column
operation ?
-Original Message-
From: jim holtman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 06, 2008 11:33
To: Ng Stanley
Cc: r-help
Su
5 matches
Mail list logo