I am trying to input a file with 4 encounter histories and two separate groups (5 transects and 4 years). I've tried different variations of code (below) but I always get an error that the number or rows or groups doesn't match. I think I am having the problem since there are FIVE transects and FOUR years, i.e. they are unequal. All of the examples in the workshop and help files are of even numbers of two groups (2 and 2).
Any suggestions would be most appreciated. I'm sure it will be an easy fix that I just can not see at the moment.
sihispring<-convert.inp("C:/sihi_spring_new.inp",group.df=data.frame(transect=c(rep("1","2","3","4","5"),4),Year=rep(c("2009","2010","2011","2012"),5)))
or
sihispring<-convert.inp("C:/sihi_spring_new.inp",group.df=data.frame(transect=rep(c("1","2","3","4","5"),4),Year=rep(c("2009","2010","2011","2012"),5)))
or
sihispring<-convert.inp("C:/sihi_spring_new.inp",group.df=data.frame(transect=c("1","2","3","4","5"),year=c("2009","2010","2011","2012")))
My original input looked like this:
/* SIHI 1 2009 SIHI1 */ 1000 1 0 0 0 0 1 0 0 0;
/* SIHI 1 2009 SIHI15 */ 0010 1 0 0 0 0 1 0 0 0;
/* SIHI 1 2009 SIHI16 */ 0010 1 0 0 0 0 1 0 0 0;
/* SIHI 1 2009 DEAD2 */ 001- 1 0 0 0 0 1 0 0 0;
/* SIHI 2 2009 SIHI2 */ 1000 0 1 0 0 0 1 0 0 0;
etc....
But then just in case my comments were messing it up, I reformatted to this:
1000 1 0 0 0 0 1 0 0 0 ;
0010 1 0 0 0 0 1 0 0 0 ;
0010 1 0 0 0 0 1 0 0 0 ;
001- 1 0 0 0 0 1 0 0 0 ;
1000 0 1 0 0 0 1 0 0 0 ;
etc....