changeToSeries: Convert a Data Frame to a Series for Use in Highcharter

Description Usage Arguments Examples

View source: R/changeToSeries.R

Description

This function converts a data frame to a series for use in highcharter

Usage

1
changeToSeries(dat, nameLabel, valueLabel)

Arguments

dat

This is the data source to be converted

nameLabel

This is the name of the column that should be the "name" part of the series

valueLabel

This is the name of the column that contains the values that will be the "data" in the series

Examples

1
2
3
library(dplyr)
mtcars <- mtcars %>% mutate(vehicle_name = row.names(.))
datSeries <- changeToSeries(mtcars,"vehicle_name","mpg")

jsdeherrera/shinyBoots documentation built on May 20, 2019, 2:08 a.m.