[R] RServe (java2R) question

2007-06-22 Thread Guanrao Chen
hi, R-ers Can anybody tell why -- String cmd = new String("scan(\"tes.txt\",skip=1,nlines=1)"); double[] d = (double[]) c.eval(cmd).getContent(); -- fail while -- double[] d = (double[]) c.eval("rnorm(100)").getContent(); -- succeed? Seems the only difference is the first command

[R] aggregate by two columns, "sum" not working while "mean" is

2007-06-07 Thread Guanrao Chen
Dear Fellow Rers, I have a table looks like this: ca, la, 12 ca, sd, 22 ca, la, 33 nm, al, 9 ma, lx, 18 ma, bs, 90 ma, lx, 22 I want to sum the 3rd column grouped by the first and the second column, so the result look like this table: ca, la, 45 < ca, sd, 22 nm, al, 9 ma, lx, 40 < ma, bs, 90 T

[R] R runs on Windows XP, how to connect to Oracle DB on Unix box?

2007-06-04 Thread Guanrao Chen
I do not have the right to install R on the Unix box. Thanks. Comedy with an Edge to see what's on, when. __ R-help@stat.math.ethz.ch mailing list https://st

[R] What is the maximum size of a matrix?

2007-06-01 Thread Guanrao Chen
hi, Rers I tried to find out the max size (# of rows, # of columns) of a matrix that is allowed by R but failed. Can anybody let me know? Thanks! Guanrao __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do r