Re: [R] using inspect with a TermDocumentMatrix to convert to a data frame

2014-12-05 Thread Erin Hodgess
Great! Thank you! On Fri, Dec 5, 2014 at 12:48 AM, Wush Wu wrote: > Dear Erin, > > For the issue of printing big data.frame, you could define a customized > `print.data.frame` in the user environment > > to prevent R prints all the data. For example: > > ```r > print.data.frame <- function(df)

Re: [R] using inspect with a TermDocumentMatrix to convert to a data frame

2014-12-04 Thread Wush Wu
Dear Erin, For the issue of printing big data.frame, you could define a customized `print.data.frame` in the user environment to prevent R prints all the data. For example: ```r print.data.frame <- function(df) { base::print.data.frame(head(df)) cat("===\n") base::print.data.frame(tail(df)

[R] using inspect with a TermDocumentMatrix to convert to a data frame

2014-12-04 Thread Erin Hodgess
Hello! I am working through the "Social Media Mining with R" book and I have something that is a bit problematic. Here is the code: hash2_tdm <- TermDocumentMatrix(hash2_corpus) print(hash2_tdm) print(findFreqTerms(hash2_tdm,lowfreq=10)) hash3_tdm <- removeSparseTerms(hash2