isInRange | R Documentation |
Test whether a vector of positions are inside given ranges
isInRange(positions, rangeList)
positions |
characters, positions. e.g. c("1:2-3", "1:4") |
rangeList |
character, ranges, e.g. "1:1-3,1:2-4", 1-based index |
logical vector, TRUE/FALSE/NA
positions <- c("1:2-3", "1:4", "XX")
ranges <- "1:1-3,1:2-4,1:5-10"
isInRange(positions, ranges)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.