create_n_mers: Create the n-mers from a character string

View source: R/create_n_mers.R

create_n_mersR Documentation

Create the n-mers from a character string

Description

Create the n-mers from a character string

Usage

create_n_mers(string, n)

Arguments

string

a character vector with one element

n

the length of the n-mers

Value

a character vector with all n-mers

See Also

use create_n_mers_tibble to create the n-mers for multiple strings

Examples

# Creates ABCD, BCDE, CDEF
create_n_mers(string = "ABCDEF", n = 4)

richelbilderbeek/bbbq documentation built on July 27, 2023, 2:15 a.m.