myGrep {maDB}R Documentation

Perform a pattern search

Description

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.

Usage

myGrep(pattern,x,exact.match=FALSE,...)

Arguments

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.

Details

This function is not really differnt from the grep call from R (as it uses also the grep call ;-)).

Author(s)

Johannes Rainer

References

See Also

grep, multiGrep

Examples






[Package maDB version 1.8.0 Index]