Extract ngrams from sequence
Description
Extracts vector of ngrams present in sequence(s).
Usage
1  seq2ngrams(seq, n, u, d = 0, pos = FALSE)

Arguments
seq 
a vector or matrix describing sequence(s). 
n 

u 

d 

pos 

Details
A format of d
vector is discussed in Details of
count_ngrams
.
Value
A character
matrix of ngrams, where every row corresponds to a
different sequence.
Examples
1 2 3 