kmers_of: Return the k-mers of a string.

View source: R/uniqtag.R

kmers_ofR 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

  • kmers_of: Return the k-mers of the string x.

  • vkmers_of: Return the k-mers of the strings xs.


uniqtag documentation built on June 10, 2022, 9:06 a.m.