[R] "read.table" and "scan" skips newlines which "count.fields" finds in Thai textfile

2010-02-02 Thread Andzsin
1] V1 <0 rows> (or 0-length row.names) Its funny NOT to see any complaints about "justkidding" encoding... (it is so not R-ish :-) We are using R2.8 -> for a while we are stuck with it. (I briefly installed R2.10 but did not seem to overcome the problem) Any kind of help is greatly ap

[R] JRI memory leak?

2009-06-18 Thread andzsin
Dear List, R 2.8.0 JRI 0.4-1 OS WinXP Pro Java 1.6 I am calling R from Java through JRI. My process runs an iteration endlessly, and (supposedly) cleans up after each turn : rm(list=ls(all=TRUE) gc(reset=TRUE) In Java: rengine.eval("rm(list=ls(all=TRUE)); gc(reset=TRUE)"); S

Re: [R] transposing/rotating XY in a 3D array

2009-05-15 Thread andzsin
Dear Kushantha, Thank you very much. Very nice, indeed. Gabor __ 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.html and provide commented, minimal

[R] transposing/rotating XY in a 3D array

2009-05-15 Thread andzsin
Dear list, We have a number of files containing similarly structured data: file1: A B C 1 2 3 4 5 6 file2: A B C 7 8 9 10 11 12 ... etc My part of R receives all these data as an array: 1,2,3... 12 together with info about dimensions (row,col,fileN) . ( Converting the data into 3D cannot simpl