Get a table
get.phrasetable(ng)
ng
An ngram object.
ngram-class
library(ngram) str <- "A B A C A B B" ng <- ngram(str) get.phrasetable(ng)