Thanks for your answer... but I think i couldn't make it quite well...this is a simplified example of my data (as mine have too many other variables! and observations). but this is the format that i have it!
structure(list(Ant.ID = structure(1:13, .Label = c("a", "b",
"c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m"), class = "factor"),
Tunel = structure(c(1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L,
3L, 4L, 4L), .Label = c("tunel A", "tunel B", "tunel C",
"tunel D"), class = "factor"), Type = structure(c(4L, 1L,
2L, 3L, 1L, 2L, 3L, 4L, 1L, 2L, 4L, 1L, 2L), .Label = c("Queen",
"RF", "RM", "Worker"), class = "factor"), Date = structure(c(4L,
4L, 5L, 1L, 1L, 6L, 6L, 6L, 2L, 2L, 2L, 3L, 3L), .Label = c("april",
"august", "dec", "feb", "march", "may"), class = "factor"),
Egg = c(4L, 5L, 7L, 2L, 5L, 9L, 4L, 3L, 2L, 6L, 8L, 9L, 2L
)), .Names = c("Ant.ID", "Tunel", "Type", "Date", "Egg"), class = "data.frame", row.names = c(NA,
-13L))