I want to read a single file (the file is a html document) from my computer and store it in a Corpus (I'm using the package tm
).
Do you have any solution to do that?
Here is what I tried :
data<-read.csv(fileName)
c2<-Corpus(VectorSource(data))
it mostly works, but I sometime get the error : more columns than column names
I guess I'm not supposed to use read.csv
for a webpage, as I didn't find a better solution.
Thanks for your help =)