powered by
Write to a csv file
write_csv(data = NULL, name = NULL, timestamp = NULL)
the output will be a .csv file in the working directory, that is, an output from the data.table function, fwrite
fwrite
a data object (a data frame or a data.table)
a character string of the csv file name without the ".csv" extension. For example, if the csv file to write to is "myfile.csv", enter name = "myfile"
name = "myfile"
logical. Should the timestamp be appended to the file name?
if (FALSE) { write_csv(mtcars, "mtcars_from_write_csv") write_csv(mtcars) }
Run the code above in your browser using DataLab