createLeftJoinUpdate: Create a left join update function.

View source: R/rezrDF_left_join.R

createLeftJoinUpdateR Documentation

Create a left join update function.

Description

A function factory that allows the user to create an update function based on a left join. Not to be called by most users; it is automatically called by rez_left_join if the necessary information is supplied.

Usage

createLeftJoinUpdate(address, fkey, df2key = "", field = "")

Arguments

address

The address of the field you want to get data from in the source rezrDF. May be a vector if you have more than one source rezrDF. For example, the 'word' field of tokenDF has the address 'tokenDF/word', and the 'word' field of the 'verb' layer of chunkDF has the address 'chunkDF/verb/word'.

fkey

The name of the foreign key in the target rezrDF.

field

The name of the field in the target rezrDF to be updated. If the field names in the source DFs are all the same and also the same as the name in the target DF, you may leave this unspecified.

df

The rezrDF to be updated.

rezrObj

The full rezrObj.

Value

An update function for the left join defined.


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