Re: [R] [R} how to build TermDocMatrix in tm text mining package of R

2009-01-11 Thread Kum-Hoe Hwang
Thank your comments very much. Thank to your help, I understood a flow for a text analysis. However, I could not run the above R scripts because tm package does not work in my PC that is a critical error. Kum Hwang Ph.D. On Sat, Jan 10, 2009 at 12:39 AM, Tony Breyal tony.bre...@googlemail.com

[R] [R} how to build TermDocMatrix in tm text mining package of R

2009-01-09 Thread Kum-Hoe Hwang
Howdy Gurus I 'd like to ask a question about how to build TermDocMatrix in tm text mining package. It is not clear about importing a plain text file, and them converting that text file into TermDocMatrix file, etc to me. How can I build a TermDocMatrix of a plain text document file for text

Re: [R] [R} how to build TermDocMatrix in tm text mining package of R

2009-01-09 Thread Tony Breyal
Hi there, I think something like the following is what you want: ### R start... # if you put your plain text files in a folder like this my.path - 'C:\\Documents and Settings\\tony\\Desktop\\texts\\' # then you can construct a simple tdm like this library(tm) my.corpus -