svm: Determine if an R object is a scalar, vector or matrix

View source: R/rex2arma.inc.R

svmR Documentation

Determine if an R object is a scalar, vector or matrix

Description

Determine if an R object is a scalar, vector or matrix

Usage

svm(obj)

Arguments

obj

An R object. Must be a vector or matrix.

Details

An object is considered as a scalar if it has a length 1.

Value

"s" for a scalar, "v" for a vector and "m" for matrix


sgsokol/rex2arma documentation built on May 5, 2023, 12:07 a.m.