createUpdateFunction: Create an update function.

View source: R/rezrDF_mutate.R

createUpdateFunctionR Documentation

Create an update function.

Description

Create an update function for 'auto' fields only. 'foreign' fields take createLowerToHigherUpdate or createLeftJoinUpdate. Normally does not need to be called by the user; it is automatically called by addFieldLocal or rez_mutate.

Usage

createUpdateFunction(field, x, df, groupField = "")

Arguments

field

The field for which you want to create an update function.

x

An R expression. For example, if you want to column2 to be updated to always be three times column3, then x should be column3 * 3.

df

The rezrDF for which you want to create an update function.

Value

An update function with automatically generated dependency information. I will figure out the dependency information for you, so you don't have to define it yourself.


johnwdubois/rezonateR documentation built on Nov. 19, 2024, 11:17 p.m.