Re: [R] Problem to predict new data with mclust

2013-12-10 Thread Welma Pereira
Btw I am using mclust, and basically wanted to reproduce the mstep and estep of the Mclust algorithm for new data. Any help is appreaciated! On 10 December 2013 21:23, Welma Pereira wrote: > Hi, > > Thanks for the hint Sarah. So here is my problem again: (files train_pca > is in t

[R] Problem to predict new data with mclust

2013-12-10 Thread Welma Pereira
Hi, I am trying to use mclust to cluster some data (train_pca_10), I get the clusters, but when I try to use the model to predict new data (test1) I get this error mClust2 <- Mclust(train_pca_10,G=2) pred<-predict.Mclust(mClust2,test1) Error in if (warn) warning(WARNING) : argument is of lengt

Re: [R] tm package- remove stowords failling

2010-04-04 Thread Welma Pereira
> Hi, > > I just noticed that by inspecting the matrix term that no all stopwords are > removed, does someone know how to fix that? > > library(tm) > data("crude") > d<-tm_map(crude, removeWords, stopwords(language='english')) > dt<-DocumentTermMatrix(d,control=list(minWordLength=3, minDocFreq=2))

[R] tm package- remove stowords failling

2010-03-31 Thread Welma Pereira
Hi, I just noticed that by inspecting the matrix term that no all stopwords are removed, does someone know how to fix that? library(tm) data("crude") d<-tm_map(crude, removeWords, stopwords(language='english')) dt<-DocumentTermMatrix(d,control=list(minWordLength=3, minDocFreq=2)) inspect( dt) I

[R] makefile for sweave

2009-09-08 Thread Welma Pereira
Hello, I have the following makefile. The problem is that the bibliography doesn t work. Any help would be appreciated! I really don t don t what to do..:-( # The sources of the report (tex, Rnw and other files (e.g. bib, idx)) TEX_CMPS = Report problem RNW_CMPS = prop1 prop2 ExeExps OTHER = Re

Re: [R] xtable, sweave and resizebox

2009-08-09 Thread Welma Pereira
oup rows using rgroup= and n.group= > arguments. > > On Sun, Aug 9, 2009 at 9:08 AM, Welma Pereira > wrote: > > Duncan, > > > > Thanks a lot! it sorted out the problem. I was too worried about learning > > how to use sweave that forgot to try other things :-) &

Re: [R] xtable, sweave and resizebox

2009-08-09 Thread Welma Pereira
Duncan, Thanks a lot! it sorted out the problem. I was too worried about learning how to use sweave that forgot to try other things :-) Teysseyre, I saw this doc but my table was large in width like almost not fitting the paper size.. Its better now but I wonder how to make better tables using x

[R] xtable, sweave and resizebox

2009-08-07 Thread Welma Pereira
does anyone know to rezize a table produzed by xtable? The size of my table is too big and I would like to resize it like using resizebox but it gives an erros when I try using it using it its fine \SweaveOpts{echo=false} <>= xtable(stats0,caption='Número de transacções dos artigos frequentes e