sampbias
sampbias copied to clipboard
Unable to project results through space
Hi there! I am trying to use sampbias R package to estimate the bias of roads and project the result through space (dataset of 33,805 species occurrences across Tasmania).
While bias calculation goes without any issue, and I am able to summarize the results, I got the following error when projecting the sampbias' output: Error in [.data.frame
(ras, , ord) : undefined columns selected (please see attached screenshot).
Could you please advise on what I must change/do to deal with this error? I am using R version 4.0.4 (2021-02-15); sampbias 1.0.4 (I installed sampbias and its dependencies on March 25th, 2021).
Hi,
this error is caused by the custom gazetteer, that is unnamed. For now, if you use a custom gazetteer, you can circumvent this problem by adding the name(s) manually after bias calculation. in your case, add
names(ea_bias_3$bias_estimate)[5] <- "w_roads"
.