is.scalar: Check if a value is a scalar

View source: R/helpers.R

is.scalarR Documentation

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)

Arguments

x

Object to be checked.

Value

TRUE if the object is a scalar, FALSE otherwise.


SerolyzeR documentation built on June 8, 2025, 10:01 a.m.