Throws an error, if any, and returns x invisibly otherwise.
Arguments
x
An object to be checked.
expected
A character string specifying the expected
type. It must be one of "list", "atomic", "vector", "numeric",
"integer", "double", "character" or "logical".
Author
N. Frerebeau
See Also
Other validation methods:
check-attribute,
check-data,
check-graph,
check-matrix,
check-numeric,
validate()