type-predicates {purrr}R Documentation

Type predicates

Description

These type predicates aim to make type testing in R more consistent. They are wrappers around typeof, so operate at a level beneath S3/S4 etc.

Usage

is_list(x)

is_atomic(x)

is_vector(x)

is_numeric(x)

is_integer(x)

is_double(x)

is_character(x)

is_logical(x)

is_null(x)

is_function(x)

Arguments

x

object to be tested.

Details

Compare to base R functions:

See Also

bare-type-predicates scalar-type-predicates


[Package purrr version 0.2.2 Index]