write.csv | R Documentation |
Write csv in UTF-8.
write.csv(x, file, row.names = FALSE, na = "", fileEncoding = "UTF-8", ...)
x |
the object to be written, preferably a matrix or data frame. If not, it is attempted to coerce x to a data frame. |
file |
either a character string naming a file or a connection open for writing. "" indicates output to the console. |
row.names |
either a logical value indicating whether the row names of x are to be written along with x, or a character vector of row names to be written. |
na |
the string to use for missing values in the data. |
fileEncoding |
character string: if non-empty declares the encoding to be used on a file (not a connection) so the character data can be re-encoded as they are written. |
... |
arguments passed to |
return value of write.csv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.