count_substring_regex: Count sequence content in a given sequence.

View source: R/RcppExports.R

count_substring_regexR Documentation

Count sequence content in a given sequence.

Description

stringi has no function that search within substring without memory creating it. This function solve that. Unlike count_substring_fixed, this function does not need to memory copy substring.

Usage

count_substring_regex(sequence, start, end, pattern)

Arguments

sequence

A sequence to map.

start

Start positions.

end

End positions.

pattern

A regex pattern to search for within start and end positions.

Value

A numeric vector of count.


kmeRtone documentation built on Sept. 11, 2024, 9:12 p.m.