Description Usage Arguments Value Examples
Title Check if the object is a vector or not
1 | vector_check(object, length = NULL)
|
object |
Vector to be tested. |
length |
Expected length. |
True or False. Vector of length 1 is not treated as a vector, thus returning false, unless the specified length is 1.
1 2 3 4 5 | vector_check(object = c(1)) == FALSE
vector_check(object = c(1), length = 1) == TRUE
vector_check(object = c(1, 1)) == TRUE
vector_check(object = c(1, 2), length = 2) == TRUE
vector_check(object = c(1, 1), length = 1) == FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.