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.org

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 97 average

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

2010-06-18 Thread Jonas Mandel
, Jun 17, 2010 at 6:03 PM, Jonas Mandel jonas.man...@curie.fr wrote: Dear R users, I have some trouble using the allEffects() function to compute and display effect plots for a linear model. My data is quite simple, it concerns effects of 3 treatments on the tumoral volume of mice. vTum codes

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

2010-06-18 Thread Jonas Mandel
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 Joris On Fri, Jun 18, 2010 at 10:19 AM, Jonas Mandel jonas.man

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

2010-06-17 Thread Jonas Mandel
: 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-help@r

[R] problems understanding error term in aov()

2009-04-28 Thread Jonas Mandel
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 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html