termFreq(doc, control = list())
First, following two options are processed.
[object Object],[object Object]
Next, a set of options which are sensitive to the order of
occurrence in the
term_frequencywith term frequencies as values and tokens as names.
data("crude") termFreq(crude[]) strsplit_space_tokenizer <- function(x) unlist(strsplit(as.character(x), "[[:space:]]+")) ctrl <- list(tokenize = strsplit_space_tokenizer, removePunctuation = list(preserve_intra_word_dashes = TRUE), stopwords = c("reuter", "that"), stemming = TRUE, wordLengths = c(4, Inf)) termFreq(crude[], control = ctrl)