greplow | R Documentation |
greplow a grep implementation that ignores the case of either the search pattern or the object to be search. Both are converted to lower case before using grep.
greplow(pattern, x)
pattern |
|
x |
|
the index location within x of 'pattern', if it is present, an empty integer if not
## Not run:
txt <- c("Long","Lat","LongE","LatE","Depth","Zone","Effort","Method")
greplow("zone",txt)
greplow("Zone",txt)
greplow("long",txt)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.