Displaying 1 result from an estimated 1 matches for "plantheight".
2010 Sep 21
3
How to convert a character into a filename?
..." here is actually a name of a colume in a data
frame
filename <- paste("plant,x")
write.csv (data, file="C:/plant/filename.csv) # having trouble with this
statement, how to 'write' the filename here?
All I want from above is to write 'data' to a file named plantheight.csv
(the ultimate goal is to use a loop to transfer each column of a data frame
into a separated file named from that column
e.g. to create many files with different names but the names are all like:
plantheight.csv, plantweight.csv, and height, weight.., are column names of
a data frame)
Thank y...