powered by
Modify data frame according to mapping
mutate_mapping(data, mapping, drop = FALSE)
A data frame object.
A mapping from hcaes function.
hcaes
A logical argument to you drop variables or not. Default is FALSE
FALSE
# NOT RUN { 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) # }
Run the code above in your browser using DataLab