is_simple_vector | R Documentation |
A simple wrapper for is.vector and is.list. The normal is.vector function returns true for lists which is undesirable. Returns a boolean.
is_simple_vector(x)
x |
(any object) An object to test. |
l = list(1:10)
v = 1:10
is.vector(v)
is.vector(l)
is_simple_vector(v)
is_simple_vector(l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.