safeMatch: safe version of the match function that throws an error if...

Description Usage Arguments Examples

View source: R/addons.R

Description

While match returns an NA if no match is found, this function will throw an error

Usage

1
 safeMatch (x, ...) 

Arguments

x

string to be matched, will be passed on as first argument to match

...

passed on to match

Examples

1
 safeMatch("oranges",  c("apples", "oranges") ) 

MalgorzataOles/pace documentation built on Nov. 18, 2017, 7:51 a.m.