Learn R Programming

SerolyzeR (version 1.1.0)

is.scalar: Check if a value is a scalar

Description

This will return FALSE for NULL and vectors of length bigger than 2.

Usage

is.scalar(x)

Value

TRUE if the object is a scalar, FALSE otherwise.

Arguments

x

Object to be checked.