all_are_numeric: Are all values numeric?

Description Usage Arguments Value See Also

View source: R/asserts.r

Description

Checks if the input object only contains numeric values.

Usage

1
2
3
4
all_are_numeric(x, .xname = get_name_in_parent(x))

assert_all_are_numeric(x, severity = getOption("assertive.severity",
  "stop"))

Arguments

x

An R object or expression.

.xname

Not intended to be used directly.

severity

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

Value

all_are_numeric returns TRUE if x contains only numeric values.The assert_* function throws an error on failure.

See Also

is.numeric, is_numeric


tensorr documentation built on May 2, 2019, 3:26 a.m.