is.scalar: Check if an object is a scalar

Description Arguments Value Usage Details Examples

Description

This function checks if an object is a scalar.

Arguments

x

An object

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

1
2
3
is.scalar(10)

is.scalar(1:10)

lambda.tools documentation built on May 2, 2019, 4:28 a.m.