[R] Run Rscript.exe, how to capture error message?

2010-06-08 Thread A Huang
C:\Program Files\R\R-2.10.1\bin\Rscript.exe" test.r xxx.txt > error.log But it doesn't work even in local windows. Thanks A. Huang __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the po

[R] Run Rscript.exe, how to capture error message?

2010-06-08 Thread A Huang
:>"C:\Program Files\R\R-2.10.1\bin\Rscript.exe" test.r xxx.txt > error.log But it doesn't work even in local windows. Thanks A. Huang __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the po

Re: [R] Convert a data frame to a 2D array?

2010-06-08 Thread A Huang
Thank you. It works like a charm. A. Huang From: Joshua Wiley Cc: r-help@r-project.org Sent: Tue, June 8, 2010 9:19:19 AM Subject: Re: [R] Convert a data frame to a 2D array? Hi, Does this work? array(data=unlist(yourdataframe), dim=c(n,m)) Josh >

[R] Convert a data frame to a 2D array?

2010-06-08 Thread A Huang
Hi there, I've read a file into a data frame. The data is n rows by m columns, all values are numbers. Is there a way to convert the data frame to a 2D array? I tried as.array(), but got some error messages. Thanks A. Huang [[alternative HTML version de