R: tm package reading in Newsgroups data
问题 The lines of code below return the following error: ">"object 'readNewsgroup' not found library(tm) setwd("C:/Users/DanRoDuq/Downloads/20news-bydate-train") sci.electr.train=Corpus(DirSource("sci.electronics") ,readerControl=list(reader=readNewsgroup,language="en_US")) I got the data from: http://qwone.com/~jason/20Newsgroups/lexData.text, and downloaded the file called 20news-bydate.tar.gz When I replace readNewsgroup by readPlain, the code runs, but the instructions I'm following tell me to