if (p$2=′0′|p$2=′a0′ and p$3=′0′|p$3='a0') {p$LTD=0 } else {p$LTD=1 } trying to implement if else statement in R return 0 or 1 depending of 2 and 3 else it is one
↧
if (p$2=′0′|p$2=′a0′ and p$3=′0′|p$3='a0') {p$LTD=0 } else {p$LTD=1 } trying to implement if else statement in R return 0 or 1 depending of 2 and 3 else it is one