json_unpack | R Documentation |
A wrapper around tidyr::unpack()
that extracts its data from a JSON column.
The inverse of json_pack()
.
json_unpack(data, cols, ..., names_sep = NULL, names_repair = "check_unique")
data |
A data frame, a data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). |
cols |
< |
... |
Arguments passed to methods. |
names_sep |
If If a string, the inner and outer names will be used together. In
|
names_repair |
Used to check that output data frame has valid names. Must be one of the following options:
See |
An object of the same type as data
tibble(a = 1, b = '{ "c": 2, "d": 3 }') %>%
json_unpack(b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.