Dear colleagues,
I have a dataset where there is duplicity in first column, and other columns need not be duplicated. For example;
> data
# A tibble: 3 × 2
name votes
<chr> <dbl>
1 Avatar 26
2 special 26 24
3 Avatar 23
As we can see the name Avatar
is repeated. My goal is to just read the first data row in case name is repeated, i.e.
> data
# A tibble: 3 × 2
name votes
<chr> <dbl>
1 Avatar 26
2 special 26 24
Can I kindly get some help here? Appreciated.