I am trying to analyze 26 years of capture histories for turtles using ORDMS in RMark. Most secondary periods have 14 sessions, although some are shorter. I am trying to model the probability of staying in the study area, Phi, as a function of the time since arrival to a secondary period, as suggested on page 15-35 of Mark Book. However, I see no variable that relates to time since arrival to sec-periods in the default ddl table , so I tried adding a covariate using data.frame and merge.design.covariates with no luck. I managed to pull the time vector from the ddl table, compute the new vector using a simple operation(time-cohort) and lined up the time vector with the new vector in the data.frame. However, I get the following error message when I tried to merge the data frame with the ddl table using merge.design.covariates.
Error in `row.names<-.data.frame`(`*tmp*`, value = c("1", "2", "3", "4", :
invalid 'row.names' length
I noticed a post by Anabell with a similar problem, but I could not follow what she did to solve the problem. I appreciate any help.