Hi. I'm trying to average multiple raster files by the following code:
list= list.files(path = mydir, pattern = "*.tif$")
stck.ppt= stack(list)
mean.ppt = calc(stck.ppt, fun = mean)
But I keep on getting the following error:
Error in setValues(out, x) :
could not find symbol "values" in environment of the generic function
Please tell me what I can do