sampbias icon indicating copy to clipboard operation
sampbias copied to clipboard

Unable to project results through space

Open cmontalvo-mancheno opened this issue 3 years ago • 1 comments

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).

Bias_road_error

cmontalvo-mancheno avatar Apr 01 '21 02:04 cmontalvo-mancheno

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".

azizka avatar Apr 01 '21 06:04 azizka