write_json | R Documentation |
write_json
uses jsonlite as the data frame to JSON parser.
write_json(x, file, pretty = TRUE, na = FALSE, auto_unbox = FALSE)
x |
R object to be written as a JSON file. |
file |
JSON file name. |
pretty |
Should the JSON output be formatted for readability? Default is
|
na |
Should |
auto_unbox |
Should vectors with the length of |
Invisible x
.
Stuart K. Grange.
## Not run:
# Export a data frame
write_json(data_car_identifiers, "car_identifiers.json")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.