Learn R Programming

eventr (version 1.0.0)

new_event_list: Event list

Description

Event list constructor. The function validates the structure of the input params and creates an event_list object.

Usage

new_event_list(...)

validate_event_list(...)

event_list(...)

Arguments

...

A set of `event` type objects.

Value

The event_list() function returns a list of event objects.

Examples

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

death_event <- event(
  id = 'second-id',
  type = 'DEATH',
  time = '2019-05-22',
  death_date = '2019-05-22'
)

the_event_list <- event_list(birth_event, death_event)

# }

Run the code above in your browser using DataLab