Sorry, I did not provide sufficient details
I have one session only.
Here are data2oscr arguments :
data <-
data2oscr(edf = edf,
tdf =list(tdf),
sess.col = 1,
id.col =2,
occ.col = 3,
trap.col = 4,
sex.col = 5,
sex.nacode = "U",
K = 7, # 7 occasions / only 1 session
ntraps = nrow(trap_operation), #number of capture traps per session
trapcov.names = c("habitat_class", "ob"),
tdf.sep = "/")
Apparently when running the function data2oscr, all trap names (53) that are in edf are not found in tdf
> class(edf)
[1] "data.frame"
> head(edf)
Session ID occasion trapID sex
1 1 18UG1 1 24845 U
2 1 18UG2 1 24845 M
3 1 18UG3 1 24845 U
> head(tdf)
# A tibble: 6 × 13
trapID X Y O.1 O.2 O.3 O.4 O.5 O.6 O.7 sep habitat_class ob
<chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <chr> <fct> <dbl>
1 20699 487482. 1969720. 0 0 0 0 0 0 1 / Trees 0.0259
2 20854 487576. 1969545. 0 0 0 0 0 0 1 / Trees 0.0234
3 21166 487775. 1969538. 0 0 0 0 0 0 1 / Trees 0.0238
thank you