powered by
makeChunks(corpus, chunksize)
txt <- system.file("texts", "txt", package = "tm") ovid <- Corpus(DirSource(txt)) sapply(ovid, length) ovidChunks <- makeChunks(ovid, 5) sapply(ovidChunks, length)
Run the code above in your browser using DataLab