Write csv in UTF-8.
write.csv(x, file, row.names = FALSE, na = "", fileEncoding = "UTF-8", ...)
the object to be written, preferably a matrix or data frame. If not, it is attempted to coerce x to a data frame.
either a character string naming a file or a connection open for writing. "" indicates output to the console.
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.
the string to use for missing values in the data.
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 write.csv
return value of write.csv