tidyjson (version 0.2.2)

tbl_json: Combines structured JSON (as a data.frame) with remaining JSON

Description

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.

Usage

tbl_json(df, json.list, drop.null.json = FALSE)

as.tbl_json(x, ...)

# S3 method for tbl_json as.tbl_json(x, ...)

# S3 method for character as.tbl_json(x, ...)

# S3 method for data.frame as.tbl_json(x, json.column, ...)

is.tbl_json(x)

Arguments

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