View source: R/calcAddVariable.R
calcAddVariable | R Documentation |
Calculate new variable from existing ones, using a generic formula.
calcAddVariable(data, formula, newUnit = "None", na.act = "no")
data |
A data frame with columns |
formula |
An object of class formula, as returned by
|
newUnit |
Character vector with the unit for the newly calculated variable. |
na.act |
Indicates how NAs in the wide data frame should be handled. Default "no" indicates no action is takenl. |
Obsolete. This function will be removed in the near future. Use
calc_addVariable()
instead.
A data frame with the original and the new variables.
Anselm Schultes, Michaja Pehl
calc_addVariable()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.