I have a raster, the pixel values inside the raster is equal to 1; outside is 0. I would like to write an r function that assign these 1 values = "cloud" in other way it will return cloud. otherwise clear.
I would like to keep the result as DF. like in the photo; (the photo is the result of different code so I cannot apply that to this situation)
How can I do this?