json_pack | R Documentation |
A wrapper around tidyr::pack()
which stores the packed data into JSON columns.
json_pack(.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::pack()
, json_pack_join()
df <- tibble::tibble(x1 = 1:3, x2 = 4:6, x3 = 7:9, y = 1:3)
packed <- json_pack(df, x = c(x1, x2, x3), y = y)
packed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.