writetype_delim | R Documentation |
Write a data frame to a delimited file, and save typing information in a separate json file
writetype_delim(
x,
path,
suffix = "",
delim = " ",
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 |
delim |
Delimiter used to separate values. |
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. Some further readr::write_delim options are deliberately unavailable as they won't make sense for files intended for re-importing. 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.