[R] text mining
Matevž Pavlič
matevz.pavlic at gi-zrmk.si
Thu May 26 21:15:42 CEST 2011
HI,
I do it like this :
setwd("C:/Users/mpavlic/Desktop/Temp")
library(tm)
tekst <- Corpus(DirSource("."),readerControl = list(language ="ansi"))
where *.txt files are stored in a folder Temp in my desktop,
HTH, m
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of rgui
Sent: Thursday, May 26, 2011 1:02 PM
To: r-help at r-project.org
Subject: [R] text mining
Hi,
how can I import a document whose type is. "txt" using the package tm?
it is the command to know that my document is not placed in the library package tm.
thanks.
--
View this message in context: http://r.789695.n4.nabble.com/text-mining-tp3552221p3552221.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list