Dear all,
For my analysis in RMark I want to merge some of the capture years (some kind of good, intermediate and bad years). I tried to do so by using "merge.desing.covariates". It worked nicely, but I was taken aback when I realised that I was creating (as the name of the function suggests) covariates and I think that the year-type should be a factor.
First I used “as.factor” to change the class type, but I’m not sure that this is the right way to do this.
So I took a closer look in the book. On page C 28 – 29 there was a description how to add new variables (dipper – flood example). I was puzzled to see that this created a numeric variable as well. Even more since the function “add.design.data”, which I could use for some other grouping of the time and which should simplify the process of merging time variables, produced a factor.
Right now I’m quite confused and uncertain how to proceed and I hope that someone can enlighten me on why those two methods produce different classes (and which should be used).
Sincerely,
Karin