When the condition has length > 1 in ifelse in r and there are more than 2 statements how to use ifelse?
I have a data set wherre I want to categorise people in to categories using sveveral arguments.
I have used if else,
I wanted to do was that to get another column containing these categories as primary,secondary,secondaryT and etc.But it seems not to work.
if ( SEX=="MALE" & SPORT=="CADET" & Bazett_formula 400 ) {"Secondary"
} else if ( SEX=="FEMALE" & SPORT=="CADET" & Bazett_formula