Hi,
I've been struggling most of the morning with an IF ELSE problem, and I
wonder if someone might be able to sort me out.

Here's what I need to do (dummy example, my data are more complicated):

If type = A or B or C
     and status = a then count = 1
     and status = b then count = 2
     and status = c then count = 3

Else if type = D or E or F
     and status = a then count = 9
     and status = b then count = 8
     and status = c then count = 7

End

Seems simple when I write it like that, but the R code is escaping me.

Thanks!

Mark Na

        [[alternative HTML version deleted]]

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to