myGrep {maDB} | R Documentation |
myGrep
This function is some kind of wrapper function for the grep
function from R
, that converts the data into a character vector before calling grep
on the data. The function returns the index or a list of indizes, where (at what position) the pattern can be found in the submitted data.
myGrep(pattern,x,exact.match=FALSE,...)
pattern |
The string that should be searched in the submitted data. |
x |
The data, any kind of string or vector. |
exact.match |
If the string to search has to be exactly the same as the pattern or not (if TRUE, it is equal to a simple == ). |
... |
Some additional parameters for the grep command. |
This function is not really differnt from the grep
call from R
(as it uses also the grep
call ;-)).
Johannes Rainer