rlang (version 0.0.0.9000)

scalar-type-predicates: Scalar type predicates

Description

These predicates check for a given type and whether the vector is "scalar", that is, of length 1.

Usage

is_scalar_list(x)
is_scalar_atomic(x)
is_scalar_vector(x)
is_scalar_integer(x)
is_scalar_double(x)
is_scalar_character(x)
is_scalar_logical(x)

Arguments

x
object to be tested.

See Also

type-predicates bare-type-predicates