Re: [R] Problem with any()

2010-09-24 Thread Jonas Mandel
Hello, try this way : any(as.integer(c(1, 3))==3) cheers, Jonas Christofer Bogaso a écrit : > Hi I have following line of code: > >> any(as.integer(c(1, 3))) == 3 > [1] FALSE > > Shouldn't I expect it is true? > > Thanks, > > __ > R-help@r-project

Re: [R] Subtraction loop

2010-06-28 Thread Jonas Mandel
Hello, Check the function diff() it can do it for you, no need for a loop. Cheers, Jonas Mandel ecvet...@uwaterloo.ca a écrit : > I have a data frame with 2 columns, one for day and one for average. The > day starts at 97 all the way to 279. I want to subtract day 98 average- > day 9

Re: [R] Problems using allEffects() (package effect)

2010-06-18 Thread Jonas Mandel
es in is wrong. Your > lm() object is not well formed, so the problem should come from the > fit itself. And as I can't see any obvious errors in your model > formula, it has to be a problem with your data. Did you get no warning > at all when fitting the model? > > Cheers

Re: [R] Problems using allEffects() (package effect)

2010-06-18 Thread Jonas Mandel
el. Sure they're factor variables and not numeric? > > Cheers > Joris > > > > On Thu, Jun 17, 2010 at 6:03 PM, Jonas Mandel wrote: >> Dear R users, >> >> I have some trouble using the allEffects() function to compute and >> display effect plots for

[R] Problems using allEffects() (package effect)

2010-06-17 Thread Jonas Mandel
t this error: > eff.lm1 <- allEffect(mod=lm1, Error in apply(mod.matrix[, components], 1, prod) : index out of range I read the help and the example but I don't understand the reason why it doesn't work. Can you help me ? Thanks -- Jonas Mandel _

[R] problems understanding error term in aov()

2009-04-28 Thread Jonas Mandel
Could you please help me understanding which is the right model for my question ? Thanks by advance Jonas Mandel U900 - Bioinformatics unit Institut Curie Paris __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA