Following one of my previous questions about looping through a
rasterstack (here), I now face a different issue. My initial rasterstack had dates as names (e.g.
X2000_05_08.1) and I reclassified it in order to change specific values. After the reclassification though, I got a
raster brick and the names changed from dates to
layer.2 and so on.
Can anyone help me to understand what I did wrong and how to fix this as I want to keep the dates?
m <- c(-1, 0,NA) rclmat <- matrix(m, ncol=3, byrow=TRUE) # matrix with the value to reclass new_rc <- reclassify(new, rclmat,right=FALSE) # reclassify my stack ("new")