
Should be trivial, can't figure a good way (embarrassingly)
I have a brick with 18 layers to which I want to apply a RandomForest prediction. Some of the cells have 0's in all the layers. I want to exclude those cells from the application of the predictions.
if (layer_1==0 & layer_2==0 & layer_3 == 0...){layer_1 <- NAlayer_2 <- NA...}
Seems simple but I'm sure I don't need a cell by cell comparison. I could sum the layers to make one comparison, then how to apply NA to the layers? Or maybe applying NA is not what I want?
Lee ElliottResearch SpecialistMoRAPColumbia, MO 		 	   		  
	[[alternative HTML version deleted]]

