writetype_csv | R Documentation |
Write a data frame to a csv file, and save typing information in a separate json file
writetype_csv(
x,
path,
suffix = "",
na = "NA",
quote_escape = "double",
eol = "\n"
)
x |
A data frame or tibble to write to disk. |
path |
File or connection to write to. (path is now deprecated in readr v1.4 for OpenSAFELY currently has older version, so use path for now). |
suffix |
The suffix used in the name of the json file, to be appended to the delimited file name. Defaults to |
na |
String used for missing values. Defaults to |
quote_escape |
The type of escaping to use for quoted values, one of " |
eol |
The end of line character to use. Most commonly either " |
Based on the readr::write_delim function. Additionally, this function saves a json file containing typing info for the data frame, which can be used to re-type the data when re-imported into R. Datetime and time classes are not supported.
Returns the input invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.