update_with: Update Data Frame with Changed Fields

Description Usage Arguments Value Examples

View source: R/update_with.R

Description

Update Data Frame with Changed Fields

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
update_with(
  .master,
  .data,
  .key = "VID",
  na_value = NA,
  ignore_col_case = TRUE,
  replace_names = FALSE,
  return_list = FALSE,
  ...
)

Arguments

.master

data.frame. The initial data set.

.data

data.frame with at least one column name shared with .master

.key

character. The name of the shared key/index column between the data frames.

na_value

what value should replace NA values in the data?

ignore_col_case

logical. Should case be ignored when matching column names?

replace_names

logical. Should the lowrcase names unsed in the function be replaced with the original data frame names?

return_list

logical. Should a list with both the original data and updated data frames be returned? Defaults to FALSE.

...

additional arguments

Value

either a data.frame of a list of data.frames

Examples

1
## Not run: vld %>% update_with(new_data1)

burch-cm/kittius documentation built on March 11, 2021, 5:40 a.m.