Skip to content
Prev 162516 / 398500 Next

simplify this instruction

in addition to %in% and depending on what the general principle behind the 
setup is: 

you may want to have a look into switch (e.g. if there happen to be "C"s 
and "D"s...).

or, of course you can check for B being between 0 and 9 rather than being the 
respective integers: 
ifelse ((B > 0) && (B <= 9)), "A", "B")

HTH
Claudia