parse_df | R Documentation |
Parse data.frame to json or list by row or column
parse_df(dat, how = "rows", tojson = TRUE, ...)
dat |
(data.frame) A data.frame, matrix, or tbl_df |
how |
(character) One of rows (default) or columns. If rows, each row becomes a separate document; if columns, each column becomes a separate document. |
tojson |
(logical) If |
... |
Further args passed on to |
Parse data.frame to get either rows or columns, each as a list or json string
## Not run:
parse_df(mtcars, how = "rows")
parse_df(mtcars, how = "columns")
parse_df(mtcars, how = "rows", tojson = FALSE)
parse_df(mtcars, how = "columns", tojson = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.