I have used a function nGrams that does not work. I do not know how to fix the error:
blog2gramfreq <- nGrams(cleanblogs100000, 2) Error in ls(envir = envir, all.names = private) : invalid 'envir' argument Called from: top level Called from: top level Browse[1]>
You can refer the function:
structure(function (this, private = FALSE, ...)
{
envir <- attr(this, ".env")
ls(envir = envir, all.names = private)
}, export = FALSE, S3class = "Object", modifiers = "public")