Description Usage Arguments Details Value Examples
View source: R/indices_and_positions.R
Computes list of n-gram elements positions in sequence.
1 | get_ngrams_ind(len_seq, n, d)
|
len_seq |
|
n |
|
d |
|
A format of d
vector is discussed in Details of
count_ngrams
.
A list with number of elements equal to n
. Every element is a
vector containing locations of given n-gram letter. For example, first element of
list contain indices of first letter of all n-grams. The attribute d
of output contains distances between letter used to compute locations
(see Details).
1 2 | # positions trigrams in sequence of length 10
get_ngrams_ind(10, 9, 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.