View source: R/patch_columns_into_frame.R
patch_columns_into_frame | R Documentation |
Add columns from new_frame into old_frame, replacing any columns with matching names in orig_frame with values from new_frame.
patch_columns_into_frame(orig_frame, new_frame)
orig_frame |
data.frame to patch into. |
new_frame |
data.frame to take replacement columns from. |
patched data.frame
orig_frame <- data.frame(x = 1, y = 2)
new_frame <- data.frame(y = 3, z = 4)
patch_columns_into_frame(orig_frame, new_frame)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.