Distance package in March 2023:Distance package in July of this year.Distance package?#base model for all species > hn0.all.birds <- ds(data = GCbirds, + key="hn", + adjustment = NULL, + convert_units = unit_conversion, + truncation = truncate, + cutpoints = cuts, + transect = "point", + formula= ~ species) data already has distend and distbegin columns, removing them and appling binning as specified by cutpoints. Fitting half-normal key function AIC= 19026.929 > #Species specific density/ abundance estimates using dht2 function |
> bird.ests <- dht2(ddf=hn0.all.birds,
+ flatfile= GCbirds,
|
+ strat_formula = ~ species, # this is required to get species-level estimates
|
+ convert_units = unit_conversion,
+ stratification = "object")
|
> rlang::last_trace()
<error/tibble_error_assign_incompatible_size> |
Error in `$<-`:
! Assigned data `diag(dm$variance)` must be compatible with existing data.
|
✖ Existing data has 12 rows.
✖ Assigned data has 11 rows. |
ℹ Only vectors of size 1 are recycled.
Caused by error in `vectbl_recycle_rhs_rows()`:
|
! Can't recycle input of size 11 to size 12.
---
Backtrace:
▆
1. ├─Distance::dht2(...)
2. │ └─base::eval.parent(mc)
3. │ └─base::eval(expr, p)
4. │ └─base::eval(expr, p)
5. └─Distance::dht2(...)
6. └─base::lapply(ddf, varNhat, data = res)
7. └─Distance (local) FUN(X[[i]], ...)
8. ├─base::`$<-`(`*tmp*`, "df_var", value = `<dbl>`)
9. └─tibble:::`$<-.tbl_df`(`*tmp*`, "df_var", value = `<dbl>`)
10. └─tibble:::tbl_subassign(...)
11. └─tibble:::vectbl_recycle_rhs_rows(value, fast_nrow(xo), i_arg = NULL, value_arg, call)
| |
|