View source: R/datalow_utils.r
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 |
- the text to search for in x |
x |
- the vector or object within which to search for 'pattern' once both have been converted to lowercase. |
the index location within x of 'pattern', if it is present, an empty integer if not
txt <- c("Long","Lat","LongE","LatE","Depth","Zone","Effort","Method")
greplow("zone",txt)
greplow("Zone",txt)
greplow("long",txt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.