prune_transform: Transform a Variable Using Pruned Data

View source: R/prune_03-A_transform.R

prune_transformR Documentation

Transform a Variable Using Pruned Data

Description

Transform a variable using pruned data.

Usage

prune_transform(data, new_var, var, prune_var = "prune_id", func = log, ...)

Arguments

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 var. Most common example is log.

...

Additional arguments used by func.

Details

Transform a variable using pruned data. When the row has a prune id of NA, the computation returns NA.

Value

Data.frame.


FrankLef/eflMuncher documentation built on July 9, 2022, 11:43 a.m.