Learn R Programming

hydrotoolbox (version 1.1.2)

check_class: Check class for arguments

Description

Check class for arguments

Usage

check_class(argument, target, arg_name)

Value

An error message if argument does not fit the target requirements

Arguments

argument

the argument to evaluate.

target

string with the allowed class.

arg_name

string with argument name to print (just for error message)