test_mapper: Test mapper function behaviour

Description Usage Arguments Details Value Author(s)

View source: R/events.R

Description

Tests the behaviour of a mapper function

Usage

1

Arguments

mapper

a mapper function

data

a vector of character test data

Details

This is a test function to runs a mapper function over a set of strings and reports which strings are mapped and what they are mapped to. It's mostly useful to ensure that any regular expressions given to mapper (i.e. when re=TRUE) have the right behaviour before using the mapper function to aggregate things from your data.

Value

What the elements of data are mapped to, if anything

Author(s)

Will Lowe


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