isciences / exactextractr

R package for fast and accurate raster zonal statistics
https://isciences.gitlab.io/exactextractr/
281 stars 26 forks source link

incorrect number of names #96

Closed sarika1999 closed 1 year ago

sarika1999 commented 1 year ago

I am trying to use exact_extract to obtain the mean value of GridMET meteorological variables using county polygons and keep getting the error "[names<-] incorrect number of names". The only information I've been able to find is to make sure I am only considering one layer/band at a time; however, the issue persists even after I go from a RasterBrick into RasterLayer. I was able to use the function previously without any trouble. Would greatly appreciate any insights/help.