map_codes: Aggregate event codes

Description Usage Arguments Details Value Author(s) See Also

View source: R/events.R

Description

Aggregates event codes

Usage

1
map_codes(edo, fun = function(x) {     return(x) })

Arguments

edo

Event data

fun

Function specifying the aggregation mapping

Details

This function relabels event codes according to fun, The mapper function is an easy way to make such a function.

This can also be used as a renaming function, but it is most useful when multiple codes should be treated as equivalent.

Value

Event data with new event codes

Author(s)

Will Lowe

See Also

map_actors


conjugateprior/events documentation built on May 13, 2019, 9:56 p.m.