Learn R Programming

tensorr (version 0.1.1)

all_are_numeric: Are all values numeric?

Description

Checks if the input object only contains numeric values.

Usage

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