mutateCalcString: mutateCalcString

View source: R/mutateCalcString.R

mutateCalcStringR Documentation

mutateCalcString

Description

[Maturing]

Allows a mutation given a string for the calculation side of the mutation

Usage

mutateCalcString(df, mutateName, mutateCalc)

Arguments

df

data.frame/tibble to change

mutateName

name of the column you want to change or create with the mutation

mutateCalc

calculation (as a string) to be used for the mutation

Value

data.frame/tibble with mutated columns

Creation notes

First created in 2020-11 while working in the MARC-KC/COVID-10_MARC Repository

Examples

## Not run: 
mutateCalcString(iris, "sumLength", "Sepal.Length + Petal.Length")

## End(Not run)

MARC-KC/marcR documentation built on June 2, 2022, 9:31 p.m.