all_are | R Documentation |
Checks if all elements of a list or List are of a (single) particular type typechar
all_are(inplist, typechar)
inplist |
list or List to be checked |
typechar |
char of the type to check for |
boolean, for whether the elements of inplist
are all typechar
x <- list(1,2) all_are(x,'numeric') all_are(x,'char') y <- list(1,2,'c') all_are(y,'numeric') all_are(y,'char')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.