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.
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.
Thanks very well -- View this message in context: http://r.789695.n4.nabble.com/text-mining-tp3552221p3554849.html Sent from the R help mailing list archive at Nabble.com.
Hi, I have a problem when indexing the corpus. I used the following syntax:> Setwd ("c :/....") > Library (tm) > Txt = Corpus (DirSource ("."); readerControl = list (language = "frensh"))an error message comes:>>> Messages d'avis :1: In readLines(y, encoding = x$Encoding) : ligne finale incompl?te trouv?e dans './n3.txt' 2: In readLines(y, encoding = x$Encoding) : ligne finale incompl?te trouv?e dans './n32. another question: how can I read different document types (. pdf,. "...) html using the package "tm"? Thanks very well for help -- View this message in context: http://r.789695.n4.nabble.com/text-mining-tp3560367p3560367.html Sent from the R help mailing list archive at Nabble.com.