View source: R/import_config.R
write_csv2 | R Documentation |
The write_csv2 function that is missing from the readr package The first time it is used it will create a column specification file allows you to create and or read a file which you can use to control a data file import
write_csv2(x, path, na = "NA", append = FALSE, col_names = !append)
x |
A data frame to write to disk |
path |
Path or connection to write to. |
na |
String used for missing values. Defaults to NA. Missing values will never be quoted; strings with the same value as na will always be quoted. |
append |
If 'FALSE', will overwrite existing file. If 'TRUE', will append to existing file. In both cases, if file does not exist a new file is created. |
col_names |
Write columns names at the top of the file? |
write_csv2(tbl_companies_uk, path="~/uk_companies_columns.csv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.