Learn R Programming

kmeRtone (version 1.0)

count_substring_regex: 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)

Value

A numeric vector of count.

Arguments

sequence

A sequence to map.

start

Start positions.

end

End positions.

pattern

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