powered by
Get a table
get.phrasetable(ng)
An ngram object.
ngram-class
library(ngram) str = "A B A C A B B" ng = ngram(str) get.phrasetable(ng)
Run the code above in your browser using DataLab