I\'ve got two data frames. One with my data:
test <- structure(list(IDcount = c(1, 1, 1, 1, 1, 2, 2, 2, 2, 2), year = c(1, 2, 3, 4, 5, 1, 2, 3, 4, 5), Otm