check_dims: Check vector/matrix/data.frame for expected dimensions or...

View source: R/fido_utils.R

check_dimsR Documentation

Check vector/matrix/data.frame for expected dimensions or throw error

Description

Check vector/matrix/data.frame for expected dimensions or throw error

Usage

check_dims(x, d, par)

Arguments

x

object to check

d

expected dimensions

par

character name of x (for error message)

Value

nothing if no error, otherwise throws error

Examples

y <- c(1,3,4)
check_dims(y, 3, "y")

fido documentation built on June 22, 2024, 9:36 a.m.