cjcarlson / embarcadero

🌲🌉 Species distribution models with Bayesian additive regression trees
49 stars 11 forks source link

Error from `bart.step()` related to `select()` call #27

Closed jbyoder closed 3 years ago

jbyoder commented 3 years ago

bart.step() throws an error

unable to find an inherited method for function ‘select’ for signature ‘"data.frame"’

I think this is due to the call to select() in the function varimp.diag() (line 29 in my copy-paste of the code from the terminal), which doesn't specify the dplyr namespace.

jbyoder commented 3 years ago

Confirmed that fixing this call to select() has got bart.step() running as expected.

cjcarlson commented 3 years ago

Fixed!