|
a |
|
b/man/safeMatch.Rd |
|
|
1 |
\name{safeMatch} |
|
|
2 |
\alias{safeMatch} |
|
|
3 |
|
|
|
4 |
\title{safe version of the match function that throws an error if there is no match} |
|
|
5 |
|
|
|
6 |
\usage{ safeMatch (x, ...) } |
|
|
7 |
\arguments{ |
|
|
8 |
|
|
|
9 |
\item{x}{ string to be matched, will be passed on as first argument to match } |
|
|
10 |
|
|
|
11 |
\item{...}{ passed on to match } |
|
|
12 |
} |
|
|
13 |
|
|
|
14 |
\description{ While \code{\link{match}} returns an NA if no match is found, this function will throw an error } |
|
|
15 |
|
|
|
16 |
\examples{ safeMatch("oranges", c("apples", "oranges") ) } |