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