jmsigner / amt

37 stars 13 forks source link

`extract_covariates()` loses factor levels #59

Closed bsmity13 closed 2 years ago

bsmity13 commented 2 years ago

raster::extract() has argument factors = FALSE. If TRUE, extract() returns a factor, else it returns an integer.

Would be nice to have access to that argument from extract_covariates().

jmsigner commented 2 years ago

This is not trivial, due to the fact how the raster package deals with factors. I will implement this when moving to terra.