is.categorical: check if x is categorical type

Description Usage Arguments Value Examples

View source: R/miscutils.R

Description

categorical types do not have orderings or hierarchies and cannot be compared within set (as opposed to comparable types)

Usage

1

Arguments

x

an object to test

Value

TRUE if x is Categorical

Examples

1
2
is.categorical(c('1','2','3')) # TRUE
is.categorical(Date(1)) # FALSE

duncankmckinnon/OKdplyr documentation built on Nov. 30, 2020, 1:13 a.m.