A vector of cues (represented by strings) to be recoded as unigrams,
bigrams, …, ngrams.
maxn
The longest n-gram to be encoded, by default maxn=1.
adjacent
A logical indicating whether only adjacent bigrams should be
included when maxn=2. If adjacent=TRUE and
maxn!=2, maxn is forced to 2.
Value
A vector of cue n-grams, one for each word in the input
vector cues. Each n-gram vector lists the constituent unigrams,
bigrams, etc., separated by underscores.
References
Arppe, A. and Baayen, R. H. (in prep.). Statistical classification
and principles of human learning.