is.vector2 | R Documentation |
returns TRUE only if x is atomic, not NULL, and with NULL dim. It should be useful in function programming, in order to check parameter (are they vector in the common sense meaning of the word?)
is.vector2(x)
x |
object to be tested |
elem_list <- list(logical = logical(),
integer = integer(),
numeric = numeric(),
complex = complex(),
char = character(),
raw = raw(),
null = NULL,
matrix = matrix(1:10, 2),
list = list(),
expression = expression(),
pairlist = pairlist(),
pairlist1 = pairlist(1))
lapply(elem_list, is.vector2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.