Man pages for terra
Spatial Data Analysis

activeCatActive category
addAdd (in place) a SpatRaster to another SpatRaster object
adjacentAdjacent cells
aggregateAggregate raster or vector data
alignAlign a SpatExtent
all.equalCompare two SpatRasters for equality
animateAnimate a SpatRaster
appApply a function to the cells of a SpatRaster
approximateEstimate values for cell values that are 'NA' by...
arith-genericArithmetic
as.characterCreate a text representation of (the skeleton of) an object
as.data.frameSpatRaster or SpatVector to data.frame
as.listSpatRaster* or SpatVector to list
as.rasterCoerce to a "raster" object
as.spatvectorConversion to a SpatVector, or to another SpatVector type
atan2Two argument arc-tangent
autocorSpatial autocorrelation
barplotBar plot of a SpatRaster
boundariesDetect boundaries (edges)
boxplotBox plot of SpatRaster data
bufferCreate a buffer around vector geometries or raster patches
cCombine SpatRaster or SpatVector objects
cartogramCartogram
catalyzeFactors to numeric
cellsGet cell numbers
cellSizeArea covered by each raster cell
centroidsCentroids
clampClamp values
classifyClassify (or reclassify) cell values
clickQuery by clicking on a map
coerceCoercion of a SpatRaster to a vector, matrix or array
collapsetighten SpatRaster or SpatRasterDataset objects
colorsColor table
combineGeomsCombine geometries
compare-genericsCompare and logical methods
compareGeomCompare geometries of SpatRasters
concatsConcatenate categorical rasters
contourContour plot
convhullConvex hull and minimal rotated rectangle
coordsGet the coordinates of SpatVector geometries or SpatRaster...
costDistCost distance
coverReplace values with values from another object
cropCut out a geographic subset
crosstabCross-tabulate
crsGet or set a coordinate reference system
deepcopyDeep copy
densifyAdd additional nodes to lines or polygons
densityDensity plot
deprecateddeprecated methods
depthdepth of SpatRaster layers
describedescribe
diffLagged differences
dimensionsDimensions of a SpatRaster or SpatVector and related objects
directionDirection
disaggregateDisaggregate raster cells or vector geometries
distanceGeographic distance
dotsMake a dot-density map
drawDraw a polygon, line, extent, or points
elongateelongate lines
eraseErase parts of a SpatVector object
expanseGet the expanse (area) of individual polygons or for all...
extCreate, get or set a SpatExtent
extendExtend
extractExtract values from a SpatRaster
factorsCategorical rasters
fillRemove holes from polygons
fillTimeFill time gaps in a SpatRaster
flipFlip or reverse a raster
focalFocal values
focal3DThree-dimensional focal values
focalCppCompute focal values with an iterating C++ function
focalMatFocal weights matrix
focalPairsFocal function across two layers
focalRegFocal regression
focalValuesGet focal values
freqFrequency table
gapsFind gaps between polygons
gdalGDAL version, supported file formats, and cache size
geometryGet the geometry (coordinates) of a SpatVector
geomtypeGeometry type of a SpatVector
globalglobal statistics
graticuleCreate a graticule
gridDistDistance on a grid
headtailShow the head or tail of a Spat* object
histHistogram
ifelseifelse for SpatRasters
imageSpatRaster image method
imposeImpose the geometry of a SpatRaster to those in a...
initInitialize a SpatRaster with values
inplaceChange values in-place
insetMake an inset map
interpIDWInterpolate points using a moving window
interpNearNearest neighbor interpolation
interpolateSpatial interpolation
intersectIntersection
is.boolRaster value types
is.lonlatCheck for longitude/latitude crs
isvalidCheck or fix polygon validity
lappApply a function to layers of a SpatRaster, or sub-datasets...
layerCorCorrelation and (weighted) covariance
linearUnitsLinear units of the coordinate reference system
linesAdd SpatVector data to a map
makeTilesMake tiles
makeVRTMake a VRT header file
maskMask values in a SpatRaster or SpatVector
matchValue matching for SpatRasters
math-genericsGeneral mathematical methods
memMemory available and needed
mergeMerge SpatRasters, or merge a SpatVector with a data.frame
mergeTimemerge SpatRasters by timelines to create a single timeseries
minmaxGet or compute the minimum and maximum cell values
modalmodal value
mosaicmosaic SpatRasters
NAflagSet the NA flag
namesNames of Spat* objects
na.omitna.omit for SpatVector
nearbynearby geometries
normalize.longitudenormalize vector data that crosses the dateline
northNorth arrow
not.nais not NA
originOrigin
pairsPairs plot (matrix of scatterplots)
patchesDetect patches (clumps) of cells
perimPerimeter or length
perspPerspective plot
pletPlot with leaflet
plotMake a map
plot_extentPlot a SpatExtent
plot_graticulePlot a graticule
plotRGBRed-Green-Blue plot of a multi-layered SpatRaster
predictSpatial model predictions
projectChange the coordinate reference system
quantileQuantiles of spatial data
queryQuery a SpatVectorProxy object
rangeFillFill layers with a range
rappRange-apply
rastCreate a SpatRaster
rasterizeRasterize vector data
rasterizeGeomRasterize geometric properties of vector data
rasterizeWinRasterize points with a moving window
rclCombine row, column, and layer numbers
readwriteRead from, or write to, file
rectifyRectify a SpatRaster
relateSpatial relationships between geometries
repReplicate layers
replace_dollarReplace with $<-
replace_layersReplace layers or variables
replace_valuesReplace values of a SpatRaster
resampleTransfer values of a SpatRaster to another one with a...
rescalerescale
RGBLayers representing colors
rollRolling (moving) functions
rotateRotate data along longitude
sampleTake a regular sample
sappApply a terra function that takes only a single layer and...
sbarscale bar
scaleScale values
scatterScatterplot of two SpatRaster layers
scoffScale (gain) and offset
sdsCreate a SpatRasterDataset
segregatesegregate
selectSpatial selection
selectHighselect cells with high or low values
selectRangeSelect the values of a range of layers, as specified by cell...
serializeserialize and saveRDS for SpatRaster and SpatVector
setValuesSet the values of raster cells or of geometry attributes
shadeHill shading
sharedPathsShared paths
shiftShift
sieveSieve filter
simplifysimplifyGeom geometries
sortSort a SpatRaster
sourcesData sources of a SpatRaster
SpatExtent-classClass "SpatExtent"
SpatRaster-classSpatRaster class
SpatVector-classClass "SpatVector"
spinspin a SpatVector
splitSplit
srcCreate a SpatRasterCollection
stretchStretch
subsetSubset a SpatRaster or a SpatVector
subset_dollarSubset a SpatRaster or a SpatVector
subset_doubleSubset a SpatRaster or a SpatVector
subset_singleExtract values from a SpatRaster, SpatVector or SpatExtent
substreplace cell values
summarize-genericsSummarize
summarysummary
svcCreate a SpatVectorCollection
symdifSymmetrical difference
tappApply a function to subsets of layers of a SpatRaster
terrainterrain characteristics
terraOptionsOptions
terra-packageDescription of the methods in the terra package
textAdd labels to a map
timetime of SpatRaster layers
tmpFileTemporary files
topologyVector topology methods
transposeTranspose
trimTrim a SpatRaster
unionUnion SpatVector or SpatExtent objects
uniqueUnique values
unitsunits of SpatRaster or SpatRasterDataSet
updateChange values in a file
valuesCell values and geometry attributes
vectCreate SpatVector objects
vector_layersList or remove layers from a vector file
viewshedCompute a viewshed
voronoiVoronoi diagram and Delaunay triangles
vrtVirtual Raster Dataset
weighted.meanWeighted mean of layers
whereWhere are the cells with the min or max values?
whichWhich cells are TRUE?
widthSpatVector geometric properties
windowSet a window
wrapwrap and unwrap
writeCDFWrite raster data to a NetCDF file
writeRasterWrite raster data to a file
writeVectorWrite SpatVector data to a file
xminGet or set single values of an extent
xyCellFromCoordinates from a row, column or cell number and vice versa
zonalZonal statistics
zoomZoom in on a map
terra documentation built on Dec. 2, 2022, 5:13 p.m.