assert_dataframe: Assert that an Object Is a Data Frame

View source: R/assert.R

assert_dataframeR Documentation

Assert that an Object Is a Data Frame

Description

assert_dataframe() checks whether the input object is a data frame. If so, it returns the object; if not, it throws an error.

Usage

assert_dataframe(x, arg = NULL)

Arguments

x

An object to check

arg

The name of the object; will be set to the name of the input if left NULL. This is useful for creating more informative errors.

Value

The input, x


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.