Learn R Programming

terra (version 0.8-6)

summary: Summary

Description

Summarize the values of SpatRaster. A sample is used for very large files.

Usage

# S4 method for SpatRaster
summary(object, size=100000, ...)

Arguments

object

SpatRaster

size

positive integer. Size of a regular sample used for large datasets

...

additional arguments. None implemented

Value

matrix with (an estimate of) the median, minimum and maximum values, the first and third quartiles, and the number of cells with NA values

See Also

global, quantile

Examples

Run this code
# 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