isScalar: Checks if the Argument is Scalar

Description Usage Arguments Value

Description

The simple helper function isScalar just checks if its argument is a scalar, i.e. a numeric vector of length 1. It is implemented as length(x) == 1L && is.vector(x, mode = "numeric").

Usage

1

Arguments

x

an R object.

Value

A length-one logical vector.


jimhester/surveillance documentation built on May 19, 2019, 10:33 a.m.