Learn R Programming

eventr (version 1.0.0)

is_event: Is an Object from a class?

Description

Test if an object is some of the classes implemented in `eventr` package.

Usage

is_event(x)

is_event_list(x)

is_handlers_list(x)

is_handler(x)

is_dispatcher(x)

Arguments

x

any `R` object.

Value

Returns a logical value

Examples

Run this code
# NOT RUN {
birth_event <- event(
  id = 'first-id',
  type = 'BIRTH',
  time = '1936-11-09',
  birth_date = '1936-11-09'
)

is_event(birth_event)

# }

Run the code above in your browser using DataLab