fill_from_columns: Fill in columns from reference

Description Usage Arguments Value

Description

Fill columns in one data frame from another, using data classes from the destination data frame. Optionally give a vector of mappings from one set of column names to the other.

Usage

1
fill_from_columns(data_new, data_old, col_pairs = NULL)

Arguments

data_new

data frame to modify. All column names present here will be checked for in data_old, enforcing data classes in data_new.

data_old

data frame to pull from. Column names here matching columns in data_new will be used.

col_pairs

character vector of column names in new data frame (vector names) matched to column names in old data frame (vector values) to use.

Value

data frame of data_new values updated with matching columns from data_old.


ressy/srahelper documentation built on May 29, 2019, 11:03 p.m.