powered by
ngram(x, k = 1)
corp <- tmCorpus(c("This is first document", "This is second")) parsed_ngrams <- ngram(corp, k = 2) tabled <- make_tabled(parsed_ngrams) content(tabled)
Run the code above in your browser using DataLab