resolve.cols: Ensure Dataframes Share Same Set Columns

View source: R/matchMulti-internal.R

resolve.colsR Documentation

Ensure Dataframes Share Same Set Columns

Description

Takes in two dataframes. For each column name that is in the second frame but not in the first frame, a new column of zeroes is added to the first frame.

Usage

resolve.cols(df1, df2)

Arguments

df1

a dataframe.

df2

a dataframe.

Value

a dataframe

Author(s)

Luke Keele, Penn State University, ljk20@psu.edu

Sam Pimentel, University of Pennsylvania, spi@wharton.upenn.edu


matchMulti documentation built on March 27, 2022, 5:05 p.m.