is_numeric_vector | R Documentation |
This function checks if an object is a numeric vector in R.
is_numeric_vector(x)
x |
An object to check. |
A logical value indicating whether x
is a numeric vector.
if(interactive()){
is_numeric_vector(c(1, 2, 3)) # TRUE
is_numeric_vector(list(1, 2, 3)) # FALSE
is_numeric_vector(1:5) # TRUE
is_numeric_vector("hello") # FALSE
is_numeric_vector(list(1, 2, "a")) # FALSE
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.