Re: [R] tm package - how to transform a TermDocMatrix to a data.frame

2007-12-12 Thread Uwe Ligges
Filipe Almeida wrote: > Hi to all, > > I'm using the tm package in a Windows machine. > > This is my sample: >> tts1 <- TermDocMatrix(tts, weighting="tf-idf") >> typeof(tts1) > [1] "S4" > > How can i transform or put the tts1 TermDocMatrix in a simple data.frame or > simple matrix. I need to c

[R] tm package - how to transform a TermDocMatrix to a data.frame

2007-12-11 Thread Filipe Almeida
Hi to all, I'm using the tm package in a Windows machine. This is my sample: >tts1 <- TermDocMatrix(tts, weighting="tf-idf") >typeof(tts1) [1] "S4" How can i transform or put the tts1 TermDocMatrix in a simple data.frame or simple matrix. I need to compute some functions. For example, I need to