The whole matrix below is quite challenging to follow. It's unclear the traslation that is happen. The notes attempt to help but I think they could be more explicit.
Note: by default, the ranges dont include left val, but include right
reclass_vec <- c(0, 20, NA, # water will be set to NA (i.e. 'left out' of our analysis)
20, 21, 1, # we'll treat developed open space as greenspace,
based on the NLCD description
21, 30, 0, # developed and hardscape will be set to 0s
30, 31, NA,
31, Inf, 1) # greenspace will have 1s
The whole matrix below is quite challenging to follow. It's unclear the traslation that is happen. The notes attempt to help but I think they could be more explicit.
Note: by default, the ranges dont include left val, but include right
reclass_vec <- c(0, 20, NA, # water will be set to NA (i.e. 'left out' of our analysis) 20, 21, 1, # we'll treat developed open space as greenspace,
based on the NLCD description