Learn R Programming

terra (version 1.7-55)

tighten: tighten SpatRaster or SpatRasterDataset objects

Description

Combines data sources within a SpatRaster object (that are in memory, or from the same file) to allow for faster processing.

Or combine sub-datasets into a SpatRaster.

Usage

# S4 method for SpatRaster
tighten(x)

# S4 method for SpatRasterDataset tighten(x)

Value

SpatRaster

Arguments

x

SpatRaster or SpatRasterDataset

Examples

Run this code
r <- rast(nrow=5, ncol=9, vals=1:45)
x <- c(r, r*2, r*3)
x
tighten(x)

Run the code above in your browser using DataLab