Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 205372

else and conditional categorical statement in R

$
0
0

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


Viewing all articles
Browse latest Browse all 205372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>