mlr_chart_data: Converts key:value pairs into ChartData specification written...

Description Usage Arguments Value Examples

View source: R/mlr_chartdata.R

Description

Converts key:value pairs into ChartData specification written by developers at BigDatr

Usage

1
mlr_chart_data(dataframe, labels = ...)

Arguments

dataframe

the data to be used for rows. Must be a column for each key:value pair with column name as the key and row as the value.

labels

a 'c()' must be passed for each label you are assigning in columns.

Value

Outputs a JSON structure with Key:Value pairs in rows and columns. This JSON structure can then be written to a file, s3, database etc. This function will not perform this final step.

Examples

1
mlr_chart_data(no_of_users, c("Date", "Users"))

mitchelllisle/mlr_package documentation built on May 24, 2019, 6:08 a.m.