#Two conditions #if...else function is only applicable for single value whereas ifelse() is applicable for vectors... #Multiple conditions #if...else if....else if ...else function only works out for single value, on the other hand case_when() is applicable for both vector and dataframe/datasets
#Two conditions
#if...else function is only applicable for single value whereas ifelse() is applicable for vectors...
#Multiple conditions
#if...else if....else if ...else function only works out for single value, on the other hand case_when() is applicable for both vector and dataframe/datasets