Learn R Programming

fMRItools (version 0.7.2)

is_1: Is this object the expected data type, and length one?

Description

Is this object the expected data type, and length one?

Usage

is_1(x, dtype = c("numeric", "logical", "character"))

Value

TRUE if x is dtype and length one.

Arguments

x

The value to check

dtype

The data type. Default: "numeric". Also can be "logical" or "character"