check_rbind: Check Row Bind

View source: R/rbind.R

check_rbindR Documentation

Check Row Bind

Description

Checks whether a data frame has the same columns of the same classes as a second data frame which means they can be rbinded without a problem.

Usage

check_rbind(
  x,
  y,
  exclusive = TRUE,
  order = FALSE,
  x_name = substitute(x),
  y_name = substitute(y),
  error = TRUE
)

Arguments

x

The first data frame.

y

The second data frame.

exclusive

A flag indicating whether other columns are not permitted.

order

A flag indicating whether the columns have to occur in the same order.

x_name

A string of the name of the object x.

y_name

A string of the name of the object y.

error

A flag indicating whether to throw an informative error or immediately generate an informative message if the check fails.

Value

An invisible copy of x (if it doesn't throw an error).

See Also

check_join

Examples

check_rbind(datasets::mtcars, datasets::mtcars)

poissonconsulting/checkr documentation built on Oct. 18, 2023, 9:39 p.m.