Open erex opened 1 year ago
Also an issue in mrds... but only an issue at the dht stage - model can be fitted ok. Will need to fail gracefully in mrds and catch it in Distance and only return the ddf part.
data(book.tee.data)
region <- book.tee.data$book.tee.region
egdata <- book.tee.data$book.tee.dataframe
egdata$object <- paste0("A", egdata$object)
samples <- book.tee.data$book.tee.samples
obs <- book.tee.data$book.tee.obs
obs$object <- paste0("A", obs$object)
result <- ddf(dsmodel=~mcds(key="hn", formula=~1), data=egdata, method="ds",
meta.data=list(width=4))
dht(result,
region,
samples,
obs)
Question from the list about output for density and abundance being zero.
Seems this is caused by the
object
field being a character string rather than a number. Perhaps code could be more robust to this.minimum reproducible example
Remedy:
Check if the
object
fieldis.numeric
otherwise, fail gracefully.