kmers_of {uniqtag}R Documentation

Return the k-mers of a string.

Description

Return the k-mers (substrings of size k) of the string x, or return the string x itself if it is shorter than k.

Usage

kmers_of(x, k)

vkmers_of(xs, k)

Arguments

x

a character string

k

the size of the substrings, an integer

xs

a character vector

Value

kmers_of: a character vector of the k-mers of x

vkmers_of: a list of character vectors of the k-mers of xs

Functions


[Package uniqtag version 1.0.1 Index]