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)

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.warwick.ac.uk/go/tapir.

See Also

read.csv

Examples

data(MPnames0105)
write.csv(MPnames0105)

[Package tapiR version 0.7-2 Index]