[R] write in a file
ligges at statistik.uni-dortmund.de
Tue Mar 19 08:42:11 CET 2002
Francisco J Molina wrote:
> I have a script that generates vectors (one in a while) How can I write
> them to a file?
> How can I recover them and put them in a matrix (or some array where I
> can introduce more vectors)?
*Please* read "An Introduction to R" and "R Data Import/Export"!
You should write them as rows of a data.frame with write.table()
append=TRUE should be an useful argument.
read.table() for the other way round.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help