Last data update: 2014.03.03
|
R: Check if an object is a scalar
Check if an object is a scalar
Description
This function checks if an object is a scalar.
Arguments
Value
A logical value that indicates if the input is of length one
Usage
is.scalar(x)
Details
This function checks to determine if an object x is a scalar,
i.e. the length of the object is equal to one.
Examples
is.scalar(10)
is.scalar(1:10)
Results
|