Displaying 3 results from an estimated 3 matches for "dataframesource".
2010 Aug 17
1
TM Package - Corpus function - Memory Allocation Problems
...'m running into Memory allocation issues: "Error: cannot
allocate vector of size 372 Kb".
My data is stored in a csv file which I've imported with "read.csv" and
then used the following to create the Corpus (but it failed with the
error message above)
txt <- Corpus(DataframeSource(txt))
I've even tried to subset ~ 10% of my data but I run into the same
error. What is a the best way to solve this memory problem other than
increasing a
physical RAM?
Thanks in advance for any help,
Leo.
_______________________________________________________________________
This e-ma...
2011 Sep 26
2
findAssocs()
I am trying to find the math behind the "tm" package findAssocs()
?findAssocs does not say anything besides "association" and "correlate"
Usually entering "findAssocs" at the CLI gives the code for a R
function, but in this case I obtain:
function (x, term, corlimit)
UseMethod("findAssocs", x)
<environment: namespace:tm>
Any ideas?
2014 Jul 29
2
wordcloud y tabla de palabras [Avanzando]
...zando en el proceso de crear wordclouds para dos
informes de 2 años diferentes.
Versión R: 3.1.1
require(tm)
require(wordcloud)
require(Rcpp)
tmpinformes<-data.frame(c("todo el informe 2005", "todo el informe
2013"), row.names=c("2005", "2013"))
ds<- DataframeSource(tmpText)
ds<- DataframeSource(tmpinformes)
corp = Corpus(ds)
corp = tm_map(corp,removePunctuation)
corp = tm_map(corp,content_transformer(tolower))
corp = tm_map(corp,removeNumbers)
corp = tm_map(corp, stripWhitespace)
corp = tm_map(corp, removeWords, sw)
corp = tm_map(corp, removeWords, stopwor...