if(interactive()){
library(pliman)
library(terra)
# Create an example raster
r <- terra::rast(matrix(runif(100, min = 0, max = 1), nrow=10, ncol=10))
# Classify the raster
result <- mosaic_classify(r, breaks = c(0.3, 0.6))
# View results
result$classified
result$class_freq
}
Run the code above in your browser using DataLab