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
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
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
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
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
_
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
6 matches
Mail list logo