vtreat (version 1.6.2)

patch_columns_into_frame: Patch columns into data.frame.

Description

Add columns from new_frame into old_frame, replacing any columns with matching names in orig_frame with values from new_frame.

Usage

patch_columns_into_frame(orig_frame, new_frame)

Arguments

orig_frame

data.frame to patch into.

new_frame

data.frame to take replacement columns from.

Value

patched data.frame

Examples

Run this code
# NOT RUN {
orig_frame <- data.frame(x = 1, y = 2)
new_frame <- data.frame(y = 3, z = 4)
patch_columns_into_frame(orig_frame, new_frame)

# }

Run the code above in your browser using DataCamp Workspace