expand_sequences: Expand any trip sequence of length 3 or greater, with their...

Description Usage Arguments Value

View source: R/sequences.R

Description

For example, given sequence "A,B,C,D", we generate all of its subsequences of length 2 and 3, resulting in the following sequence set: "A,B", "B,C", "C,D", "A,B,C", "B,C,D", "A,B,C,D"

Usage

1
expand_sequences(seqs, sep = ",")

Arguments

seqs

a tibble with named column "s": sequence

sep

character separating each element in the sequence

Value

expanded tibble, with additional column "l" specifying the length of the sequence


ppintosilva/anprflows documentation built on May 20, 2021, 3:25 p.m.