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

How do I use R to count multiple variables?

$
0
0

I have a large dataset of Bird observations. I would like to count by groups i.e. the species observed by various categories: year, season, and grid.

For example how many American Crows (AMCR) were observed in 2017? Or how many American Robins were observed in 2017 in Breeding season (BB column)?

Here's an example of my headers and first line of data:

Data Headers

enter image description here

Year    Season  Date    Grid    Species Count   Behavior
2015     BB   22-Jul-15  FF       AMCR     1        C

I tried to use the dplyrcount_ and group_by but I think I'm doing it wrong. Please help!


Viewing all articles
Browse latest Browse all 201867

Trending Articles



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