reload: Functions for reloading auto and foreign fields.

View source: R/generic.R

reloadR Documentation

Functions for reloading auto and foreign fields.

Description

Functions for reloading auto and foreign fields.

Usage

reload(x, ...)

## S3 method for class 'rezrDF'
reload(df, rezrObj, fields = "")

reloadLocal(df, fields = "")

reloadForeign(df, rezrObj, fields = "")

Arguments

df

The rezrDF you want to modify.

rezrObj

The entire rezrObj.

fields

The fields of the rezrDF you would like to modify.

Value

The modified rezrDF. reloadLocal reloads only auto fields; reloadForeign reloads only foreign fields. Foreign fields are always updated before auto fields. If the fields parameter is not available, I will find the best update order; otherwise, I will use the order you provide except for the rule where foreign fields are updated first.

Note

reload.rezrObj is planned for a future release, but not yet available

Examples

sbc007$tokenDF = changeFieldLocal(sbc007$tokenDF, fieldName = "text", expression = case_when(text == "<0>" ~ "∅", T ~ text))
sbc007$entryDF = sbc007$entryDF %>% reloadForeign(sbc007)
sbc007$unitDF = sbc007$unitDF %>% reload(sbc007)
sbc007$unitDF %>% filter(str_detect(text, "∅")) %>% rez_select(id, text) %>% head

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