Check if object is categorical

is_categorical(v)

Arguments

v

A single value

Value

Boolean

Examples

nums <- 2
is_categorical(nums)
#> [1] TRUE