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

View source: R/changeToSeries.R

changeToSeriesR Documentation

Convert a Data Frame to a Series for Use in Highcharter

Description

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

Usage

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

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

jsdeherrera/shinyBoots documentation built on March 9, 2024, 3:03 a.m.