Hi all,
I have carried out multiple Covariates Distance Sampling analyses a few months ago to assess the abundance of a species of dolphins. I have tested the influence of the groupe size on the detection function, and it seems to have an impact even if the Chi squared test are not significant. I am just trying to test log (group size) instead of group size as a covariate, with the same R code and even the same file (I have just changed values into the size field). Unfortunately, I have this message: Error in checkdata(data, region.table, sample.table, obs.table, formula) :
Not all object IDs are unique, check data.
Here are my codes:
import_data_missions_CeTO_nomenclature_Sa_covariates_log_size_vf4 <- read.delim2("/cloud/project/import_data_missions_CeTO_nomenclature_Sa_covariates_log_size_vf4.txt")
> View(import_data_missions_CeTO_nomenclature_Sa_covariates_log_size_vf4
> SaRUN_covariates<-import_data_missions_CeTO_nomenclature_Sa_covariates_log_size_vf4
> conversion.factor<-convert_units("meter", "kilometer", "square kilometer")
> bins<-seq(from=0, to=1200, by=100)
> SaRUN_covariates.hn.bin <-ds(data=SaRUN_covariates, key="hn", adjustment=NULL, cutpoints=bins, formula=~1, convert.units = conversion.factor)
Error in checkdata(data, region.table, sample.table, obs.table, formula) :
Not all object IDs are unique, check data.
Can you help me? I am about to throw my computer by the window^^