kmers_of: 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
k
the size of the substrings, an integer
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