I have a data frame with a string column in which I need to condense all equal values into one value. An example of my data set:
CommonName Month Site season period
23 Gambel's Quail Oct McDowell Sonoran Preserve Autumn 4
24 American Kestrel Nov McDowell Sonoran Preserve Autumn 4
25 Black-throated Sparrow Nov McDowell Sonoran Preserve Autumn 4
26 Brewer's Sparrow Nov McDowell Sonoran Preserve Autumn 4
27 Common Raven Nov McDowell Sonoran Preserve Autumn 4
28 Gilded Flicker Nov McDowell Sonoran Preserve Autumn 4
29 Loggerhead Shrike Nov McDowell Sonoran Preserve Autumn 4
30 Loggerhead Shrike Nov McDowell Sonoran Preserve Autumn 4
31 Northern Mockingbird Nov McDowell Sonoran Preserve Autumn 4
32 Red-tailed Hawk Nov McDowell Sonoran Preserve Autumn 4
33 White-crowned Sparrow Nov McDowell Sonoran Preserve Autumn 4
107 Acorn Woodpecker Oct McDowell Sonoran Preserve Autumn 4
108 Say's Phoebe Nov McDowell Sonoran Preserve Autumn 4
236 Abert's Towhee Nov Brown's Ranch Wash Autumn 4
237 Cactus Wren Nov Brown's Ranch Wash Autumn 4
238 Canyon Towhee Nov Brown's Ranch Wash Autumn 4
239 Curve-billed Thrasher Nov Brown's Ranch Wash Autumn 4
240 Gambel's Quail Nov Brown's Ranch Wash Autumn 4
This data spans multiple years so it is possible for a species to be listed multiple times. This is what I would like to avoid because I am only trying to determine the occurrence of the species within each site and season. So in this example, I would like to only have one data point for Loggerhead Shrike and Gambel's Quail while everything else would remain the same. I appreciate your help. I have been unsuccessfully looking for similar questions but I do not know exactly what this process would be called.