Skip to contents

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.