Compute the n-grams (contiguous sub-sequences of length n) of a given sequence.
a sequence (vector).
a positive integer giving the length of contiguous sub-sequences to be computed
a list with the computed sub-sequences.
1 2 3 4 5 6 7
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.