Writes a CSV (comma separated values) file.
Write a matrix or Time Indexed Series to a .csv file that can be imported into a spreadsheet.
csv(z, file = "", noDates = FALSE, row.names = !is.tis(z), ...)
z |
matrix or |
file |
either a character string naming a file or a connection. If
|
noDates |
logical. If |
row.names |
either a logical value indicating whether the row names of
|
... |
other arguments passed on to |
csv
is essentially a convenient way to call write.table
.
If file
is not a connection, a file name with the ".csv"
extension is constructed. Next, a column of spreadsheet dates is
prepended to z
if necessary, and then csv
calls
write.table(z, file = filename, sep = ",", row.names = !is.tis(z), ...)
csv
returns whatever the call to write.table
returned.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.