is_data.frame: Is the input is a data.frame?

Description Usage Arguments Value See Also Examples

View source: R/is-type-base.R

Description

Is the input is a data.frame?

Usage

1
2
3
assert_is_data.frame(x, severity = getOption("assertive.severity", "stop"))

is_data.frame(x, .xname = get_name_in_parent(x))

Arguments

x

Input to check.

severity

How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".

.xname

Not intended to be used directly.

Value

is_data.frame wraps is.data.frame, providing more information on failure. assert_is_data.frame returns nothing but throws an error if is_data.frame returns FALSE.

See Also

is.data.frame.

Examples

1
2

assertive.types documentation built on May 1, 2019, 10:31 p.m.