Combines structured JSON (as a data.frame) with remaining JSON
Note that json.list must have the same length as nrow(df), and if json.list has any NULL elements, the corresponding rows will be removed from df. Also note that "..JSON" is a reserved column name used internally for filtering tbl_json objects, and so is not allowed in the data.frame names.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | tbl_json(df, json.list, drop.null.json = FALSE)
as.tbl_json(x, ...)
## S3 method for class 'tbl_json'
as.tbl_json(x, ...)
## S3 method for class 'character'
as.tbl_json(x, ...)
## S3 method for class 'data.frame'
as.tbl_json(x, json.column, ...)
is.tbl_json(x)
|
df |
data.frame |
json.list |
list of json lists parsed with fromJSON |
drop.null.json |
drop NULL json entries from data.frame and json |
x |
an object to convert into a tbl_json object |
... |
other arguments |
json.column |
the name of the JSON column of data in x, if x is a data.frame |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.