powered by
Summarize the values of SpatRaster. A sample is used for very large files.
# S4 method for SpatRaster summary(object, size=100000, ...)
SpatRaster
positive integer. Size of a regular sample used for large datasets
additional arguments. None implemented
matrix with (an estimate of) the median, minimum and maximum values, the first and third quartiles, and the number of cells with NA values
NA
global, quantile
# NOT RUN { set.seed(0) r <- rast(nrow=10, ncol=10, nlyr=3) values(r) <- runif(size(r)) summary(r) # }
Run the code above in your browser using DataLab