R: Scalar type predicates

scalar-type-predicates {purrr} | R Documentation

## 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_numeric(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

[Package purrr version 0.2.2 Index]