| is_categorical | R Documentation |
Check, if vector is categorical, i.e. if is logical, factor, character or integer
is_categorical(x)
x |
A vector of arbitrary type |
Logical value
is_categorical(c(TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, TRUE))
is_categorical(1:10)
is_categorical((1:10) + 0.1)
is_categorical(as.factor(c("Ferrari", "Lamborghini", "Porsche", "McLaren", "Koenigsegg")))
is_categorical(c("Ferrari", "Lamborghini", "Porsche", "McLaren", "Koenigsegg"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.