I have a df like this:
df <- data.frame("Part" = c("y","z","y","z","x","y"), "Prod" = c("a","d","e","d","t","a"))
> df
Part Prod
1 y a
2 z d
3 y e
4 z d
5 x t
6 y a
I want an output like this:
df2
Part Prod
1 x t
2 y a
3 y e
4 z d
Actually I want a result that summarizes results without duplication in "Part" column. How to do this is R. Thanks