Checks whether a data frame has the same columns of the same classes as a
second data frame which means they can be rbind
ed without a
problem.
check_rbind(
x,
y,
exclusive = TRUE,
order = FALSE,
x_name = substitute(x),
y_name = substitute(y),
error = TRUE
)
The first data frame.
The second data frame.
A flag indicating whether other columns are not permitted.
A flag indicating whether the columns have to occur in the same order.
A string of the name of the object x.
A string of the name of the object y.
A flag indicating whether to throw an informative error or immediately generate an informative message if the check fails.
An invisible copy of x (if it doesn't throw an error).