View source: R/SerializerJson.R
unpack_json_cols | R Documentation |
Unserialize data frame columns that contain JSON
unpack_json_cols(x, cols) ## S3 method for class 'data.table' unpack_json_cols(x, cols) ## S3 method for class 'data.frame' unpack_json_cols(x, cols)
x |
a |
cols |
|
a data.frame
with additional columns expanded from the columns
containing JSON
x <- data.frame( name = "example data", fields = '{"letters":["a","b","c"], "LETTERS":["A","B","C"]}', stringsAsFactors = FALSE ) res <- unpack_json_cols(x, "fields") res res$letters[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.