Hi all,
I am new to R-project
I have a problem when when ever I am going to append a row in a *.csv file
that is
in R-project I created one dataframe and I saved it in res.csv and again
I got some results in dataframe with same column names and i tried to append
in a new row of same res.csv
For some clever reason, write.csv won't let you set col.names argument to
FALSE, but you can use it with write.table using sep=,.
A self-contained, minimal, and working example:
write.csv(matrix(1:10,2,5), test.csv)
write.table(matrix(11:20,2,5), test.csv, sep=,, append=TRUE,
col.names=FALSE)
Looking at your question, I found myself wondering if you really
wanted to do this at all. It appeared so much like inefficient habits
acquired in the years of BASIC and Excel use. If you are interested in
storing a dataframe to disk and then bringing it back into an R
session, then the
3 matches
Mail list logo