## Make the main object:
lft <- lifertable(ColumnFemale = Female,
ColumnAge = Age,
ColumnEggs = Eggs,
SexRate = Sexrate,
ColumnGroups = Group,
data = Insects,
TotalEggs = TRUE)
as.data.frame(lft$TOTAL.EGGS)
Run the code above in your browser using DataLab