Description Usage Arguments See Also Examples
Export data.frame to CSVY
1 2 3 |
x |
A data.frame. |
file |
A character string or R connection specifying a file. |
metadata |
Optionally, a character string specifying a YAML (“.yaml”) or JSON (“.json”) file to write the metadata (in lieu of including it in the header of the file). |
sep |
A character string specifying a between-field separator. Passed to |
dec |
A character string specifying a within-field separator. Passed to |
comment_header |
A logical indicating whether to comment the lines containing the YAML front matter. Default is |
name |
A character string specifying a name for the dataset. |
metadata_only |
A logical indicating whether only the metadata should be produced (no CSV component). |
... |
Additional arguments passed to |
1 2 3 4 5 | library("datasets")
write_csvy(head(iris))
# write yaml w/o comment charaters
write_csvy(head(iris), comment_header = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.