Learn R Programming

baseq (version 0.2.0)

count_kmers: K-mer Counting

Description

Counts all possible substrings of length k.

Usage

count_kmers(s, k = 3)

Value

A table of k-mer counts

Arguments

s

A character string containing the sequence

k

Integer length of k-mer

Examples

Run this code
data(sars_fragment)
count_kmers(sars_fragment, k = 3)

Run the code above in your browser using DataLab