Hai guys,
I have been following the mexico dolphins example to develop dsm for some parrot species here in Zambia. I finally fitted two models and am now trying to add a covariate of Transect type (I had walking and driving transects) but am stuck with this error;
dsm.obj.T_Type <- dsm(count~s(X,Y,k=10) + s(T_Type,k=20), detfc.hr.null, segment.data = segment.data_new, observation.data = obsdata,method = "REML")
Error in names(dat) <- object$term :
'names' attribute [1] must be the same length as the vector [0]
The Data: I have segmented my transects into 0.5km which is 4860 rows of segments (segment.data) and I had 192 rows of observations (observation.data) - i used the same sample labelling in both, with the 192 of course not having each of the 4860 rows, only those with presence records - could this be the problem? and how can i get around it?
Chaona