write.csv {tapiR} | R Documentation |
Writes a data frame in comma-separated values format, either to a file or to standard output.
write.csv(x, file = "")
x |
a data frame |
file |
a file name, usually ending in .csv |
If no file name is supplied, the results appear on standard output.
invisible(NULL)
The inverse operation, to read in data from a .csv
file, is
mydata <- read.csv("myfile.csv", row.names = 1)
David Firth
Firth, D and Spirling, A (2003) Divisions of the United Kingdom House of Commons, from 1992 to 2003 and beyond. Submitted for publication. At http://www.warwick.ac.uk/go/tapir.
data(MPnames0105) write.csv(MPnames0105)