0

I have a data table containing crashes, with county as an attribute for each. I would like to count the number of instances per county and add this number to a data table containing one row per county.

So far I haven't been able to find any documentation for this. I need to generalize it such that every county gets tallied up. Thanks for any help!

Phil
  • 7,287
  • 3
  • 36
  • 66
  • Please provide enough code so others can better understand or reproduce the problem. – Community Apr 19 '23 at 21:00
  • Sounds like you want to `aggregate` by county and gather the sum of instances from the multiple county lines. There are many worked examples on SO. – IRTFM Apr 19 '23 at 22:11
  • Does this answer your question? [Count number of rows within each group](https://stackoverflow.com/questions/9809166/count-number-of-rows-within-each-group) – margusl May 09 '23 at 18:28

0 Answers0