[R] unique vs duplicate problem

2012-07-09 Thread Nico902
Hi, Let say I have a numeric vector: x - c(1, 2, 3, 3). I want on one hand numbers which are not duplicated ie 1,2 and duplicated 3. so I did: duplicated(x) FALSE FALSE FALSE TRUE unique(x) 1 2 3 which is not what I want. Is there a function in R to have the following result:

Re: [R] unique vs duplicate problem

2012-07-09 Thread Nico902
excellent!!! thanks a lot!! -- View this message in context: http://r.789695.n4.nabble.com/unique-vs-duplicate-problem-tp4635868p4635874.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] chippeakanno package: getAllPeakSequence problem

2011-09-23 Thread Nico902
Thanks Martin, it worked. I will post on BioC next time. Cheers. -- View this message in context: http://r.789695.n4.nabble.com/chippeakanno-package-getAllPeakSequence-problem-tp3830284p3836422.html Sent from the R help mailing list archive at Nabble.com.

[R] chippeakanno package: getAllPeakSequence problem

2011-09-21 Thread Nico902
Hi all, I am using the package ChIPpeakAnno, and I have a problem with the function getAllPeakSequence. This is related to object oriented programming I think, I have the following message: peaksWithSequences - getAllPeakSequence(peakList, upstream = 100, downstream = 100, genome = Hsapiens)

Re: [R] mclust: modelName=E vs modelName=V

2011-09-07 Thread Nico902
What's wrong with that? (The values you submit as scale in prior are not fixed variances, but parameters of the prior distribtion - your problem may be that you believe that they are meant to be variances fixed by you!?) Yes I did, so I think it is not possible to fix the variance. Anyway,

Re: [R] mclust: modelName=E vs modelName=V

2011-09-06 Thread Nico902
Hi, Thanks a lot for your answer. I effectively was able to get rid of this message by doing: resClust - Mclust(data,G=3,modelName=V,prior=priorControl(scale=c(1.44,0.81,0.49))); However, I would like to be able to retrieve the variances I defined in the result. I found:

[R] mclust: modelName=E vs modelName=V

2011-09-04 Thread Nico902
Hi, I'm trying to use the library mclust for gaussian mixture on a numeric vector. The function Mclust(data,G=3) is working fine but the fitting is not optimal and is using modelNames=E. When I'm trying Mclust(data,G=3,modelName=V) I have the following message: Error in if (Sumry$G 1)