Learn R Programming

polmineR (version 0.6.1)

ngrams-class: get ngrams

Description

get ngrams

Usage

ngrams(.Object, ...)
"ngrams"(.Object, n = 2, pAttribute = "word", char = NULL, progress = FALSE)
"ngrams"(.Object, char = NULL, mc = FALSE, progress = FALSE, ...)

Arguments

.Object
object of class partition
...
further parameters
n
number of tokens
pAttribute
p-attribute
char
if NULL, tokens will be counted, else characters, keeping only those provided by a character vector
progress
logical
mc
logical, whether to use multicore