[R] Odp: partial solutions to: if else statement problem
petr.pikal at precheza.cz
Tue Jun 8 14:38:33 CEST 2010
r-help-bounces at r-project.org napsal dne 08.06.2010 14:21:10:
> Thank you to all for your help!
> I received
> two equal alternative solutions that bypassed elegantly the problem
> from peter.l.e.konings at gmail.com
> rafael.bjork at gmail.com
> rr.dia2.corr <- rr.dia.2m
> rr.dia2.corr[which(med.hyper == 1)] <- rr.dia.2m[which(med.hyper == 1)]
Try to compare it with my suggestion
my.result <- rr.dia.2m - (med.hyper == 1)*5
which by my opinion will be same.
> From pburns at pburns.seanet.com
> I received a hint to understand the problem why my code does not work.
> p 13 on
> I have to digest this yet
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help