In a data frame as input:
data.frame(group = c(1,1,1,2,2,3), number = c(10,10,10,5,5,1))
How is it possible to check which is the group numbe