View source: R/FSA_locate_regex.R
FSA_locate_regex | R Documentation |
Locate indices of the pattern in the string
FSA_locate_regex(string, pattern, ignore.case = FALSE, perl = FALSE, fixed = FALSE,
useBytes = FALSE)
string |
a string as character |
pattern |
a pattern to screen |
ignore.case |
ignore.case |
perl |
perl |
fixed |
fixed |
useBytes |
useBytes |
This function returns 'NULL' when no matches are detected for the pattern.
A 2-column matrix of location indices. The first and second columns represent start and end positions, respectively.
pattern <- "Cl"
string <- "NaCl.5HCl"
Location_Cl <- FSA_locate_regex(string, pattern)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.