err.vec.dim: Throws an error if the argument is not a vector of a...

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

err.vec.dimR Documentation

Throws an error if the argument is not a vector of a specified dimension

Description

Throws an error if the argument is not an atomic vector of a specified dimension.

Usage

err.vec.dim(v, n)

Arguments

v

The vector/item under scrutiny

n

The size of the vector/object v

Details

Throws an error if the value v is NULL
The vector must be of atomic class(excludes lists)
No constraints imposed on the contents of the vector

Value

Return type is NULL

Author(s)

Chitran Ghosal

Examples

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

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