mutate_mapping: Modify data frame according to mapping

Description Usage Arguments Examples

View source: R/highcharts-api-add.R

Description

Modify data frame according to mapping

Usage

1

Arguments

data

A data frame object.

mapping

A mapping from hcaes function.

drop

A logical argument to you drop variables or not. Default is FALSE

Examples

1
2
3
df <- head(mtcars)
mutate_mapping(data = df, mapping = hcaes(x = cyl, y = wt + cyl, group = gear))
mutate_mapping(data = df, mapping = hcaes(x = cyl, y = wt), drop = TRUE)

highcharter documentation built on Jan. 3, 2022, 5:08 p.m.