View source: R/type-assertions.R
assert_is_numeric | R Documentation |
Raises an assertion error when !is.numeric(obj)
.
assert_is_numeric( obj, error_message = "{.arg obj} must be a {.cls numeric} vector", error_class = NULL )
obj |
< |
error_message |
< |
error_class |
< |
Other type-assertions:
assert_inherits()
,
assert_is_character()
,
assert_is_double()
,
assert_is_integerish()
,
assert_is_integer()
,
assert_is_logical()
,
assert_is_raw()
,
assert_is_typeof()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.