Diff of /man/safeMatch.Rd [000000] .. [226bc8]

Switch to side-by-side view

--- a
+++ b/man/safeMatch.Rd
@@ -0,0 +1,16 @@
+\name{safeMatch}
+\alias{safeMatch}
+
+\title{safe version of the match function that throws an error if there is no match}
+
+\usage{ safeMatch (x, ...) }
+\arguments{ 
+
+\item{x}{ string to be matched, will be passed on as first argument to match  } 
+
+\item{...}{ passed on to match }
+}
+
+\description{ While \code{\link{match}} returns an NA if no match is found, this function will throw an error }
+ 
+\examples{ safeMatch("oranges",  c("apples", "oranges") ) }