event_list: Event list

Description Usage Arguments Value Examples

View source: R/event_list.R

Description

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

Usage

1
2
3
4
5

Arguments

...

A set of 'event' type objects.

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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)

eventr documentation built on July 8, 2020, 7:32 p.m.