Quantcast
Viewing all articles
Browse latest Browse all 206379

Calculating 0,1 in two different columns in R

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

Image may be NSFW.
Clik here to view.
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 206379

Trending Articles



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