Merging Raster to a shapfile Error: Error in non-numeric-alike variable(s) in data frame: geometry

I am trying to merge a raster file rastlistyield[[1]] to a shapefile m (Extracting raster values to polygons). However its giving me the error(attached with the image).

ndvi_nafot = aggregate(rastlistyield[[1]], m, mean, na.rm = TRUE)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.