error message in checkdata

17 views
Skip to first unread message

RPE

unread,
Jul 25, 2025, 9:03:37 AMJul 25
to distance-sampling
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^^

Eric Rexstad

unread,
Jul 25, 2025, 9:07:22 AMJul 25
to RPE, distance-sampling
Don't throw your computer out the window (there may be someone standing below your window).

I'm afraid the only way I can diagnose the error about uniqueness of the detection codes is for you to send to me (off list) the .txt file of data so I can run it for myself.

From: distance...@googlegroups.com <distance...@googlegroups.com> on behalf of RPE <rpe.ce...@gmail.com>
Sent: 25 July 2025 13:59
To: distance-sampling <distance...@googlegroups.com>
Subject: {Suspected Spam} [distance-sampling] error message in checkdata
 
--
You received this message because you are subscribed to the Google Groups "distance-sampling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to distance-sampl...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/distance-sampling/32c73e70-7643-40ff-822e-03b62d3398f8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages