err.vec.dim.bit: Returns a TRUE boolean bit if the argument is not a vector of...

View source: R/err.vec.dim.bit.R

err.vec.dim.bitR Documentation

Returns a TRUE boolean bit if the argument is not a vector of a specified dimension

Description

Returns a TRUE boolean bit if the argument is not an atomic vector of a specified dimension.

Usage

err.vec.dim.bit(v, n)

Arguments

v

The vector/item under scrutiny

n

The size of the vector/object v

Details

Returns TRUE if the value v is NULL
The vector must be of atomic class(excludes lists/dataframes, i.e. returns TRUE if they are)
No constraints imposed on the contents of the vector, i.e. returns FALSE if the other criteria are satisfied

Value

Return type is a boolean bit.
Returns TRUE if an error-worthy exception is detected.

Author(s)

Chitran Ghosal

References

boolean return version of err.vec.dim(v, n) .
See function err.vec.dim().
See also err.WN.vec.dim() and err.WN.vec.dim.bit().

Examples

v <- c(1.3, 2.0)
w <- c(1.0, 2.0)
L <- list(v, w)
err.vec.dim.bit(v, 2)
err.vec.dim.bit(w, 2)
err.vec.dim.bit(w, 3)
err.vec.dim.bit(L, 2)

Chitran1987/StatsChitran documentation built on Feb. 23, 2025, 8:30 p.m.