Hi there,
I was wondering whether there is a way in RTextTools, where I can create a term-document matrix which contain both 1-gram and 2-gram level terms.
I tried the following which didn't yield the desired outcome.
> create_matrix(db.sentences$sentence, ngramLength=c(1,2))
Warning message:
In if (ngramLength > 1) { :
the condition has length > 1 and only the first element will be used
Any suggestions?
Thanks,