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

Calculating 0,1 in two different columns in R

$
0
0

I have a data (DAT) of ~30,000 subjects with several columns in the form of 0,1 and a 'Group' variable e.g.,

enter image description here

I want to count how many subjects in group '2' are 1 in V1 and V5. How do I do it in R command-line?


Viewing all articles
Browse latest Browse all 201867

Trending Articles



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