split_events: Split events to obtain unique categories.

Description Usage Arguments Value Examples

Description

split_events splits multi-category events from arvig into observations with unique categories.

Usage

1

Arguments

df

A data frame. If left unspecified, the arvig data frame is used. A user-specified data frame must contain the columns category_en and category_de.

Value

A data frame.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(arvig)
head(split_events())

arvig %>%
  filter(stringr::str_detect(category_en, "&")) %>%
  split_events()

## End(Not run)

davben/arvig documentation built on May 14, 2019, 8:59 p.m.