is.enum_type: Check Enum Type

Description Usage Arguments Value Examples

View source: R/check.R

Description

Test whether Enum is also of class type.

Usage

1

Arguments

x

object to be tested

type

character string denoting type to check.

...

objects passed to methods

Value

TRUE if x has enumerated type type, FALSE otherwise

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
HelloEnum <- Enum(
  "HelloEnum",
  Hello,
  World
)

# TRUE
is.enum_type(HelloEnum$Hello, "HelloEnum")

# FALSE
is.enum_type(HelloEnum$Hello, "Hello")

matchr documentation built on Sept. 9, 2021, 5:07 p.m.

Related to is.enum_type in matchr...