check_variable: check_variable

Description Usage Arguments Value

View source: R/inputVerification.R

Description

Helper function to avoid code repetition to check type and length of inputs

Usage

1
check_variable(variable, variable_name)

Arguments

variable
  • Variable to check

variable_name
  • Variable name to be used for the error message

Value

An error in case of length or type error, nothing otherwise


jdestefani/UEMTS documentation built on Dec. 20, 2021, 10:05 p.m.