Checks the class and values of a scalar
check_scalar(scalar, value, scalar_name = substitute(scalar))
scalar | The scalar to check. |
---|---|
value | A vector specifying the class and value. |
scalar_name | A string of the name of vector. |
Throws an informative error or returns an invisible copy of the scalar.