简体   繁体   中英

R, "tm" package - Error: Corpus Function not found

I'm a rookie R/tm user and I have a dumb but annoying issue.

After downloading the 884 KB of tm package through this line [install.packages("tm")], setting my work directory and opening my file, I tried to use this function:

corpus<-Corpus(VectorSource(mycorpus$title))

In response, R software writes: "Corpus function not found".

Do I have to install more packages or am I doing something wrong?

Before you ask, I've already checked here ( R text file and text mining...how to load data ), but it wasn't helpful in this case.

Thank you for your help!

首先加载你的包

library(tm)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM