Re: [R] How to create a legend without plot, and to use scientific notation for axes label ?

2008-04-10 Thread Stanley Ng
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:

Re: [R] conditional matching of rows of tables

2008-03-20 Thread Stanley Ng
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

[R] Any one is porting or has ported prtools (http://www.prtools.org/) to R ?

2008-02-11 Thread Kwang Loong Stanley Ng
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

Re: [R] Conditional rows

2008-02-11 Thread Stanley Ng
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

Re: [R] error message from apply()

2008-02-05 Thread Stanley Ng
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