is.comparable: Check if x is comparable type

Description Usage Arguments Value Examples

View source: R/miscutils.R

Description

comparable types have orderings that can be used for sorting and comparison within set (as opposed to categorical types)

Usage

1

Arguments

x

an object to test

Value

TRUE if x is Comparable

Examples

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

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