Question: what are cases in r?
Answer: cases allows to distinguish several cases defined logical conditions. It can be used to code these cases into a vector. The function can be considered as a multi-condition generalization of ifelse . Keywords manip.