is_enum: Test object inheritance

Description Usage Arguments Value

View source: R/enum_types.r

Description

Test object inheritance

Usage

1
2
3
4
5

Arguments

x

object to check

Value

TRUE if the object inherits from the enum class, and FALSE if it does not.

TRUE if the object inherits from the numeric enum class, and FALSE if it does not.

TRUE if the object inherits from the generic enum class, and FALSE if it does not.


ElianHugh/enumr documentation built on Dec. 17, 2021, 6:25 p.m.