Patch one data set using another
patch_data.RdPatch one data set using another
Usage
patch_data(
basedata,
patchdata,
by = dplyr::group_vars(basedata),
...,
replace = NA,
do_not_replace = NA,
verbose = TRUE
)Arguments
- basedata
The original (source) data
- patchdata
The updated data
- by
The variables to match between source and updated data (all other columns in the updated data are used to patch the source data).
- ...
Ignored
- replace
Values selected in
basedatafor replacement with values inpatchdata(via%in%). (IfNULL, all values may be replaced.)- do_not_replace
Values in
patchdatanot to use for replacement of values inbasedata. (IfNULL, all values may be used for replacement.)- verbose
Report on replacement count by column.