raster_1: an integer raster with non-sequential values
i(101, 130, 240, 323)
i: a watershed discharging X of sediment in the environment
raster_2: represents the water quality for each watershed
iwith values ranging from 0 to 100,000 - named
I have ~400 rasters representing the water quality of 400 watersheds.
I would like to build a loop to set the values in
NA for each zone (defined by the values: 101, 130, 240, 323 in
raster_2 for the corresponding value (e.g.,
plume_101) is 0, using R.
raster_1 = 101 & plume_101 = 0, assign
raster_1 = 130 & plume 130 = 0, assign
- When raster_1 = 240 & plume 240 = 0, assign
raster_1values and so forth...
How can I do this?
plume_101should only have values where