count_kmers: K-mer Counting

View source: R/analysis.R

count_kmersR Documentation

K-mer Counting

Description

Counts all possible substrings of length k.

Usage

count_kmers(s, k = 3)

Arguments

s

A character string containing the sequence

k

Integer length of k-mer

Value

A table of k-mer counts

Examples

data(sars_fragment)
count_kmers(sars_fragment, k = 3)

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