write.csv {tapiR}R Documentation

Write a Data Frame in .csv Format

Description

Writes a data frame in comma-separated values format, either to a file or to standard output.

Usage

write.csv(x, file = "")

Arguments

x a data frame
file a file name, usually ending in .csv

Details

If no file name is supplied, the results appear on standard output.

Value

invisible(NULL)

Warning

....

Note

The inverse operation, to read in data from a .csv file, is mydata <- read.csv("myfile.csv", row.names = 1)

Author(s)

David Firth

References

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.stats.ox.ac.uk/~firth/tapiR/.

See Also

read.csv

Examples

data(MPnames0103)
write.csv(MPnames0103)

[Package Contents]