kmers_of: Return the k-mers of a string.

Description Usage Arguments Value Functions

View source: R/uniqtag.R

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

1
2
3
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


uniqtag documentation built on May 29, 2017, 9:11 a.m.