Learn R Programming

guess (version 0.3.0)

validate_matrix: Validate matrix input

Description

Validate matrix input

Usage

validate_matrix(x, arg_name, valid_ncols = NULL)

Value

TRUE if valid, throws error otherwise

Arguments

x

input to validate

arg_name

name of the argument for error messages

valid_ncols

optional vector of valid column counts