json_nest | R Documentation |
A wrapper around tidyr::nest()
which stores the nested data into JSON columns.
json_nest(.data, ..., .names_sep = NULL)
.data |
A data frame, a data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). |
... |
< |
.names_sep |
If |
tidyr::nest()
, json_nest_join()
df <- tibble::tibble(x = c(1, 1, 1, 2, 2, 3), y = 1:6, z = 6:1)
nested <- json_nest(df, data = c(y, z))
nested
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.