Write R Scripts for Word and Ngram TDMs

Write R scripts for word-based and n-gram TermDocumentMatrices.