View source: R/prune_03-A_transform.R
prune_transform | R Documentation |
Transform a variable using pruned data.
prune_transform(data, new_var, var, prune_var = "prune_id", func = log, ...)
data |
Dataframe. |
new_var |
Name of new variable with the result of the computation. |
var |
Name of variable to transform. |
prune_var |
The name of the column with the prune id. Default is "prune_id". |
func |
Function used to transform |
... |
Additional arguments used by |
Transform a variable using pruned data. When the row has a prune id of
NA
, the computation returns NA
.
Data.frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.