count_pattern: Count Pattern

View source: R/analysis.R

count_patternR Documentation

Count Pattern

Description

Counts the occurrences of a specific pattern in a sequence.

Usage

count_pattern(s, p)

Arguments

s

A character string containing the sequence

p

A character string containing the pattern to count

Value

Integer count of occurrences

Examples

data(sars_fragment)
count_pattern(sars_fragment, "ATTA")

baseq documentation built on March 12, 2026, 1:07 a.m.