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

View source: R/addons.R

safeMatchR Documentation

safe version of the match function that throws an error if there is no match

Description

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

Usage

 safeMatch (x, ...) 

Arguments

x

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

...

passed on to match

Examples

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

MalgorzataOles/BloodCancerMultiOmics2017 documentation built on March 29, 2024, 2:29 p.m.