parse_df | R Documentation |
data.frame
to a list
Convert data to a format suitable for ApexCharts.js
parse_df(data, add_names = FALSE)
data |
A |
add_names |
Use names of columns in output. Can be logical to
reuse |
A list
that can be used to specify data in ax_series
for example.
# All iris dataset
parse_df(iris)
# Keep variables names
parse_df(iris[, 1:2], add_names = TRUE)
# Use custom names
parse_df(iris[, 1:2], add_names = c("x", "y"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.