Description Usage Arguments Value Author(s) Examples
If a list contains objects of the same class with the given class name, we call it a homogenous
list and the function returns TRUE
, otherwise it returns FALSE
.
1 |
list |
A list |
class |
The class name to be validated |
logical
Jitao David Zhang mailto:jitao_david.zhang@roche.com
1 2 3 4 5 | testlist <- list("home1"="Hamburg","home2"="Heidelberg",
"home3"="Tianjin")
isHomoList(testlist,"character")
testlist$lucky <- 16
isHomoList(testlist,"character")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.