parse_df {apexcharter} | R Documentation |
Convert a data.frame
to a list
Description
Convert data to a format suitable for ApexCharts.js
Usage
parse_df(data, add_names = FALSE)
Arguments
data |
A |
add_names |
Use names of columns in output. Can be logical to
reuse |
Value
A list
that can be used to specify data in ax_series
for example.
Examples
# 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"))
[Package apexcharter version 0.4.3 Index]