New to Stackoverflow.
I have a dataset that are as following:
There are only Ants in this dataset.
Df_Ant_Observations
Type Observation
Ant 2022-05-22
Ant 2021-04-23
Ant 2022-06-22
Ant 2014-07-22
Ant 2018-02-25
Ant 2021-05-22
Ant 2018-05-22
Ant 2021-05-23
Ant 2022-06-24
500 + columns 500 + columns
I want to filter these observations so that the first observation for every year is filtered and selected (only one per year). I'm planning to use this filtered data in a ggplot to show how the first observations every year differs.
filter()
and lubridate
are functions that I think could be useable.
Anyone has any ideas how to filter Df_Ant_Observations as desired? :)