isInRange: Test whether a vector of positions are inside given ranges

View source: R/seqminer.R

isInRangeR Documentation

Test whether a vector of positions are inside given ranges

Description

Test whether a vector of positions are inside given ranges

Usage

isInRange(positions, rangeList)

Arguments

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

Value

logical vector, TRUE/FALSE/NA

Examples

positions <- c("1:2-3", "1:4", "XX")
ranges <- "1:1-3,1:2-4,1:5-10"
isInRange(positions, ranges)

seqminer documentation built on Oct. 7, 2024, 1:15 a.m.