I am new to R and trying wordcloud using a text file separated by spaces. I have installed tm
and tmap
packages. I am getting following errors:
Error: could not find function "Corpus"
Error: could not find function "tm_map"
Can anybody help me out ?
You have to load the packages also into your session via
library(tm)
library(tmap)
Then the function tm()
is available for you. Another possibilty is
tm::tm_map()
This calls R to take the function tm_map()
from package tm
.
I tried after installing below and it worked for me:
install.packages("http://cran.r-project.org/bin/windows/contrib/3.0/tm_0.5-10.zip",repos=NULL)
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.