Package: terra 1.7-81

Robert J. Hijmans

terra: Spatial Data Analysis

Methods for spatial data analysis with vector (points, lines, polygons) and raster (grid) data. Methods for vector data include geometric operations such as intersect and buffer. Raster methods include local, focal, global, zonal and geometric operations. The predict and interpolate methods facilitate the use of regression type (interpolation, machine learning) models for spatial prediction, including with satellite remote sensing data. Processing of very large files is supported. See the manual and tutorials on <https://rspatial.org/> to get started. 'terra' replaces the 'raster' package ('terra' can do more, and it is faster and easier to use).

Authors:Robert J. Hijmans [cre, aut], Roger Bivand [ctb], Emanuele Cordano [ctb], Krzysztof Dyba [ctb], Edzer Pebesma [ctb], Michael D. Sumner [ctb]

terra_1.7-81.tar.gz
terra_1.7-81.zip(r-4.5)terra_1.7-81.zip(r-4.4)terra_1.7-81.zip(r-4.3)
terra_1.7-81.tgz(r-4.4-arm64)terra_1.7-81.tgz(r-4.4-x86_64)terra_1.7-81.tgz(r-4.3-arm64)terra_1.7-81.tgz(r-4.3-x86_64)
terra_1.7-81.tar.gz(r-4.5-noble)terra_1.7-81.tar.gz(r-4.4-noble)
terra_1.7-81.tgz(r-4.4-emscripten)terra_1.7-81.tgz(r-4.3-emscripten)
terra.pdf |terra.html
terra/json (API)
NEWS

# Install 'terra' in R:
install.packages('terra', repos = c('https://fastverse.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/rspatial/terra/issues

Uses libs:
  • proj– Cartographic projection library
  • gdal– Geospatial Data Abstraction Library
  • geos– Geometry engine for Geographic Information Systems
  • c++– GNU Standard C++ Library v3

On CRAN:

geospatialrasterspatialvector

372 exports 532 stars 12.13 score 1 dependencies 762 dependents 133.7k downloads

Last updated 3 days agofrom:6ebc74539f

Exports:%in%activeCatactiveCat<-add_boxadd_gridadd_legendadd_mtextadd<-addCatsadjacentaggregatealignall.equalallNAanimateappapproximateareaArithas.arrayas.boolas.contouras.data.frameas.factoras.intas.linesas.listas.matrixas.pointsas.polygonsas.rasteratan_2atan2autocorbarplotbestMatchblocksboundariesboxplotbuffercartogramcatalyzecategoriescatscbind2cellFromRowColcellFromRowColCombinecellFromXYcellscellSizecentroidsclampclamp_tsclassifyclearanceclickcolFromCellcolFromXcolorizecoltabcoltab<-combineGeomscompareComparecompareGeomconcatscontourconvHullcostDistcountNAcovercrdscropcrosstabcrscrs<-datatypedeepcopydelaunaydensifydensitydepthdepth<-describediffdirectiondisaggdistancedotsdrawdroplevelselongateemptyGeomseraseexpanseextext<-extendextractextractAlongextractRangefileBlocksizefillHolesfillTimeflipflowAccumulationfocalfocal3DfocalCorfocalCppfocalMatfocalPairsfocalRegfocalValuesforceCCWfree_RAMfreqgapsgdalgdalCachegeomgeomtypegetGDALconfiggetTileExtentsglobalgraticulegridDistgridDistancehalohas.colorshas.RGBhas.timehasMinMaxhasValuesheadhistidenticalifelimageimposeinextinitinMemoryinsetinterpIDWinterpNearinterpolateintersectis.boolis.emptyis.factoris.intis.linesis.lonlatis.pointsis.polygonsis.relatedis.rotatedis.validisFALSEisTRUEk_meanslapplayerCorlevelslinearUnitslineslogicLogiclongnameslongnames<-makeNodesmakeTilesmakeValidmakeVRTmap_extentmap.palmaskmatchmathMathMath2meanmedianmem_infomergemergeLinesmergeTimemetametagsmetags<-minCircleminmaxminRectmodalmosaicna.omitNAflagNAflag<-namesncellncolncol<-nearbynearestNIDPnlyrnlyr<-noNAnormalize.longitudenorthnot.nanrownrow<-nsrcoriginorigin<-pairspanelpatchesperimpersppitfinderpletplotplotRGBpointspolysprcomppredictprincompprojectquantilequeryrangeFillrapprastrasterizerasterizeGeomrasterizeWinrclreadRDSreadStartreadStopreadValuesrectifyregressrelateremoveDupNodesresres<-resamplerescalerevRGBRGB<-rollrotateroundrowColCombinerowColFromCellrowFromCellrowFromYsame.crssappsaveRDSsbarscalescoffscoff<-sdssegregateselselectHighestselectRangeserializeset.catsset.crsset.extset.namesset.RGBset.valuessetGDALconfigsetMinMaxsetValuesshadesharedPathsshiftsievesimplifyGeomsizesnapsortsourcesspatSamplespinsplitsprcstdevstretchsubsetsubstsummarySummarysvcsymdifttailtappterrainterraOptionstexttightentimetime<-timeInfotmpFilestranstrimunionuniqueunitsunits<-unserializeunwrapupdatevaluesvalues<-varnamesvarnames<-vectvector_layersviewshedvoronoivrtvrt_tileswatershedweighted.meanwhere.maxwhere.minwhich.lyrwhich.maxwhich.minwidthwindowwindow<-wrapwrapCachewriteCDFwriteRasterwriteStartwriteStopwriteValueswriteVectorxappxFromCellxFromColxmaxxmax<-xminxmin<-xresxyFromCellyFromCellyFromRowymaxymax<-yminymin<-yreszonalzoom

Dependencies:Rcpp

Readme and manuals

Help Manual

Help pageTopics
Description of the methods in the terra packageterra-package terra
Active categoryactiveCat activeCat,SpatRaster-method activeCat<- activeCat<-,SpatRaster-method
Add (in place) a SpatRaster to another SpatRaster or to a SpatRasterDataset or SpatRasterCollectionadd<- add<-,SpatRaster,SpatRaster-method add<-,SpatRasterCollection,SpatRaster-method add<-,SpatRasterDataset,SpatRaster-method
draw a boxadd_box
add a grid to a map made with terraadd_grid
add a custom legendadd_legend
draw a boxadd_mtext
Adjacent cellsadjacent adjacent,SpatRaster-method adjacent,SpatVector-method
Aggregate raster or vector dataaggregate aggregate,SpatRaster-method aggregate,SpatVector-method
Align a SpatExtentalign align,SpatExtent,numeric-method align,SpatExtent,SpatRaster-method
Compare two SpatRasters for equalityall.equal all.equal,SpatRaster,SpatRaster-method
Animate a SpatRasteranimate animate,SpatRaster-method
Apply a function to the cells of a SpatRasterapp app,SpatRaster-method app,SpatRasterDataset-method
Estimate values for cell values that are 'NA' by interpolating between layersapproximate approximate,SpatRaster-method
ArithmeticArith,logical,SpatRaster-method Arith,matrix,SpatRaster-method Arith,missing,SpatRaster-method Arith,numeric,SpatExtent-method Arith,numeric,SpatRaster-method Arith,SpatExtent,numeric-method Arith,SpatExtent,SpatExtent-method Arith,SpatRaster,logical-method Arith,SpatRaster,matrix-method Arith,SpatRaster,missing-method Arith,SpatRaster,numeric-method Arith,SpatRaster,SpatRaster-method Arith,SpatVector,SpatVector-method Arith-methods
Create a text representation of (the skeleton of) an objectas.character,SpatExtent-method as.character,SpatRaster-method
SpatRaster or SpatVector to data.frameas.data.frame as.data.frame,SpatRaster-method as.data.frame,SpatVector-method
Conversion to a SpatVector of linesas.lines as.lines,SpatExtent-method as.lines,SpatRaster-method as.lines,SpatVector-method
Coerce a Spat* object to a listas.list as.list,SpatRaster-method as.list,SpatRasterCollection-method as.list,SpatRasterDataset-method as.list,SpatVector-method as.list,SpatVectorCollection-method
Conversion to a SpatVector of pointsas.points as.points,SpatExtent-method as.points,SpatRaster-method as.points,SpatVector-method
Conversion to a SpatVector of polygonsas.polygons as.polygons,SpatExtent-method as.polygons,SpatRaster-method as.polygons,SpatVector-method
Coerce to a "raster" objectas.raster as.raster,SpatRaster-method
Two argument arc-tangentatan2 atan2,SpatRaster,SpatRaster-method atan_2 atan_2,SpatRaster,SpatRaster-method
Spatial autocorrelationautocor autocor,numeric-method autocor,SpatRaster-method
Bar plot of a SpatRasterbarplot barplot,SpatRaster-method
bestMatchbestMatch bestMatch,SpatRaster,data.frame-method bestMatch,SpatRaster,SpatVector-method
Detect boundaries (edges)boundaries boundaries,SpatRaster-method
Box plot of SpatRaster databoxplot boxplot,SpatRaster-method
Create a buffer around vector geometries or raster patchesbuffer buffer,SpatRaster-method buffer,SpatVector-method
Combine SpatRaster or SpatVector objectsc c,SpatRaster-method c,SpatRasterCollection-method c,SpatRasterDataset-method c,SpatVector-method c,SpatVectorCollection-method rbind rbind.SpatVector
Cartogramcartogram cartogram,SpatVector-method
Factors to numericas.numeric as.numeric,SpatRaster-method catalyze catalyze,SpatRaster-method
Get cell numberscells cells,SpatRaster,missing-method cells,SpatRaster,numeric-method cells,SpatRaster,SpatExtent-method cells,SpatRaster,SpatVector-method
Area covered by each raster cellcellSize cellSize,SpatRaster-method
Centroidscentroids centroids,SpatVector-method
Clamp valuesclamp clamp,numeric-method clamp,SpatRaster-method
clamp time series dataclamp_ts clamp_ts,numeric-method clamp_ts,SpatRaster-method
Classify (or reclassify) cell valuesclassify classify,SpatRaster-method
Query by clicking on a mapclick click,missing-method click,SpatRaster-method click,SpatVector-method
Coercion to vector, matrix or arrayas.array as.array,SpatRaster-method as.matrix as.matrix,SpatExtent-method as.matrix,SpatRaster-method as.vector as.vector,SpatExtent-method as.vector,SpatRaster-method
Color tablecoltab coltab,SpatRaster-method coltab<- coltab<-,SpatRaster-method has.colors has.colors,SpatRaster-method
Combine geometriescombineGeoms combineGeoms,SpatVector,SpatVector-method
Compare and logical methods!,SpatRaster-method compare Compare,matrix,SpatRaster-method Compare,numeric,SpatRaster-method Compare,SpatExtent,SpatExtent-method Compare,SpatRaster,character-method Compare,SpatRaster,matrix-method Compare,SpatRaster,numeric-method Compare,SpatRaster,SpatRaster-method compare,SpatRaster-method Compare-methods is.finite,SpatRaster-method is.infinite,SpatRaster-method is.na,SpatRaster-method is.nan,SpatRaster-method logic Logic,logical,SpatRaster-method Logic,numeric,SpatRaster-method Logic,SpatRaster,logical-method Logic,SpatRaster,numeric-method Logic,SpatRaster,SpatRaster-method logic,SpatRaster-method Logic-methods
Compare geometries of SpatRasterscompareGeom compareGeom,SpatRaster,list-method compareGeom,SpatRaster,SpatRaster-method compareGeom,SpatRaster,SpatRasterCollection-method compareGeom,SpatRasterCollection,missing-method compareGeom,SpatVector,missing-method compareGeom,SpatVector,SpatVector-method
Concatenate categorical rastersconcats concats,SpatRaster-method
Contour plotas.contour as.contour,SpatRaster-method contour contour,SpatRaster-method
Convex hull, minimal bounding rotated rectangle, and minimal bounding circleconvHull convHull,SpatVector-method minCircle minCircle,SpatVector-method minRect minRect,SpatVector-method
Cost-distancecostDist costDist,SpatRaster-method
Replace values with values from another objectcover cover,SpatRaster,SpatRaster-method cover,SpatVector,SpatVector-method
Get the coordinates of SpatVector geometries or SpatRaster cellscrds crds,SpatRaster-method crds,SpatVector-method
Cut out a geographic subsetcrop crop,SpatGraticule-method crop,SpatRaster-method crop,SpatRasterCollection-method crop,SpatRasterDataset-method crop,SpatVector-method
Cross-tabulatecrosstab crosstab,SpatRaster,missing-method
Get or set a coordinate reference systemcrs crs,character-method crs,sf-method crs,SpatExtent-method crs,SpatRaster-method crs,SpatRasterDataset-method crs,SpatVector-method crs,SpatVectorCollection-method crs,SpatVectorProxy-method crs<- crs<-,SpatRaster,ANY-method crs<-,SpatRaster-method crs<-,SpatVector,ANY-method crs<-,SpatVector-method
Data type of a SpatRaster or SpatVectordatatype datatype,SpatRaster-method datatype,SpatVector-method
Deep copydeepcopy deepcopy,SpatRaster-method deepcopy,SpatVector-method
Add additional nodes to lines or polygonsdensify densify,SpatVector-method
Density plotdensity density,SpatRaster-method
deprecated methodsarea area,SpatRaster-method setCats setCats,SpatRaster-method
depth of SpatRaster layersdepth depth,SpatRaster-method depth<- depth<-,SpatRaster-method
describedescribe describe,character-method
Lagged differencesdiff diff,SpatRaster-method
Dimensions of a SpatRaster or SpatVector and related objectsdim dim,SpatRaster-method dim,SpatRasterCollection-method dim,SpatRasterDataset-method dim,SpatVector-method dim,SpatVectorProxy-method dim<-,SpatRaster-method length length,SpatRasterCollection-method length,SpatRasterDataset-method length,SpatVector-method length,SpatVectorCollection-method ncell ncell,ANY-method ncell,SpatRaster-method ncell,SpatRasterDataset-method ncol ncol,SpatRaster-method ncol,SpatRasterCollection-method ncol,SpatRasterDataset-method ncol,SpatVector-method ncol<- ncol<-,SpatRaster,numeric-method nlyr nlyr,SpatRaster-method nlyr,SpatRasterCollection-method nlyr,SpatRasterDataset-method nlyr<- nlyr<-,SpatRaster,numeric-method nrow nrow,SpatRaster-method nrow,SpatRasterCollection-method nrow,SpatRasterDataset-method nrow,SpatVector-method nrow<- nrow<-,SpatRaster,numeric-method nsrc nsrc,SpatRaster-method res res,SpatRaster-method res,SpatRasterDataset-method res<- res<-,SpatRaster,numeric-method res<-,SpatRaster-method size size,SpatRaster-method xres xres,SpatRaster-method yres yres,SpatRaster-method
Directiondirection direction,SpatRaster-method
Disaggregate raster cells or vector geometriesdisagg disagg,SpatRaster-method disagg,SpatVector-method
Geographic distancedistance distance,data.frame,data.frame-method distance,data.frame,missing-method distance,matrix,matrix-method distance,matrix,missing-method distance,SpatRaster,missing-method distance,SpatRaster,sf-method distance,SpatRaster,SpatVector-method distance,SpatVector,ANY-method distance,SpatVector,SpatVector-method
Make a dot-density mapdots dots,SpatVector-method
Draw a polygon, line, extent, or pointsdraw draw,character-method draw,missing-method
elongate lineselongate elongate,SpatVector-method
Erase parts of a SpatVector objecterase erase,SpatGraticule,SpatVector-method erase,SpatVector,missing-method erase,SpatVector,SpatExtent-method erase,SpatVector,SpatVector-method
Get the expanse (area) of individual polygons or for all (summed) raster cellsexpanse expanse,SpatRaster-method expanse,SpatVector-method
Create, get or set a SpatExtentext ext,bbox-method ext,Extent-method ext,matrix-method ext,missing-method ext,numeric-method ext,Raster-method ext,sf-method ext,SpatExtent-method ext,Spatial-method ext,SpatRaster-method ext,SpatRasterCollection-method ext,SpatRasterDataset-method ext,SpatVector-method ext,SpatVectorProxy-method ext<- ext<-,SpatRaster,numeric-method ext<-,SpatRaster,SpatExtent-method
Extendextend extend,SpatExtent-method extend,SpatRaster-method
Extract values from a SpatRasterextract extract,SpatRaster,data.frame-method extract,SpatRaster,matrix-method extract,SpatRaster,numeric-method extract,SpatRaster,sf-method extract,SpatRaster,SpatExtent-method extract,SpatRaster,SpatVector-method extract,SpatRasterCollection,ANY-method extract,SpatRasterDataset,ANY-method extract,SpatVector,data.frame-method extract,SpatVector,matrix-method extract,SpatVector,SpatVector-method
extract values along linesextractAlong
Extract values for a range of layers from a SpatRasterextractRange extractRange,SpatRaster,ANY-method extractRange,SpatRaster-method
Get or compute the minimum and maximum cell valueshasMinMax hasMinMax,SpatRaster-method minmax minmax,SpatRaster-method setMinMax setMinMax,SpatRaster-method
Categorical rastersaddCats addCats,SpatRaster-method categories categories,SpatRaster-method cats cats,SpatRaster-method droplevels droplevels,SpatRaster-method levels levels,SpatRaster-method levels<- levels<-,SpatRaster-method
Remove holes from polygonsfillHoles fillHoles,SpatVector-method
Fill time gaps in a SpatRasterfillTime fillTime,SpatRaster-method
Flip or reverse a rasterflip flip,SpatRaster-method flip,SpatVector-method rev rev,SpatRaster-method
Flow accumulationflowAccumulation flowAccumulation,SpatRaster-method
Focal valuesfocal focal,SpatRaster-method
Three-dimensional focal valuesfocal3D focal3D,SpatRaster-method
Compute focal values with an iterating C++ functionfocalCpp focalCpp,SpatRaster-method
Focal weights matrixfocalMat
Focal function across two layersfocalCor focalCor,SpatRaster-method focalPairs focalPairs,SpatRaster-method
Focal regressionfocalReg focalReg,SpatRaster-method
Get focal valuesfocalValues focalValues,SpatRaster-method
force counter-clockwise polygonsforceCCW forceCCW,SpatVector-method
Frequency tablefreq freq,SpatRaster-method
Find gaps between polygonsgaps gaps,SpatVector,SpatExtent-method gaps,SpatVector-method
GDAL version, supported file formats, and cache sizegdal gdalCache getGDALconfig setGDALconfig
Get the geometry (coordinates) of a SpatVectorgeom geom,SpatVector-method
Geometry type of a SpatVectorgeomtype geomtype,Spatial-method geomtype,SpatVector-method geomtype,SpatVectorProxy-method is.lines is.lines,SpatVector-method is.points is.points,SpatVector-method is.polygons is.polygons,SpatVector-method
global statisticsglobal global,SpatRaster-method
Create a graticulegraticule
Distance on a gridgridDist gridDist,SpatRaster-method gridDistance gridDistance,SpatRaster-method
Add halo-ed text to a plothalo
head and tail of a SpatRaster or SpatVectorhead head,SpatRaster-method head,SpatVector-method tail tail,SpatRaster-method tail,SpatVector-method
Histogramhist hist,SpatRaster-method
Compare two SpatRasters for equalityidentical identical,SpatRaster,SpatRaster-method
ifelse for SpatRastersifel ifel,SpatRaster-method
SpatRaster image methodimage image,SpatRaster-method
Impose the geometry of a SpatRaster to those in a SpatRasterCollection.impose impose,SpatRasterCollection-method
Initialize a SpatRaster with valuesinit init,SpatRaster-method
Change values in-placeset.cats set.cats,SpatRaster-method set.crs set.crs,SpatRaster-method set.crs,SpatVector-method set.ext set.ext,SpatRaster-method set.ext,SpatVector-method set.names set.names,SpatRaster-method set.names,SpatRasterCollection-method set.names,SpatRasterDataset-method set.names,SpatVector-method set.names,SpatVectorCollection-method set.RGB set.RGB,SpatRaster-method set.values set.values,SpatRaster-method
Make an inset mapinext inext,SpatVector-method inset inset,SpatRaster-method inset,SpatVector-method
Interpolate points using a moving windowinterpIDW interpIDW,SpatRaster,matrix-method interpIDW,SpatRaster,SpatVector-method
Nearest neighbor interpolationinterpNear interpNear,SpatRaster,matrix-method interpNear,SpatRaster,SpatVector-method
Spatial interpolationinterpolate interpolate,SpatRaster-method
Intersectionintersect intersect,SpatExtent,SpatExtent-method intersect,SpatExtent,SpatRaster-method intersect,SpatExtent,SpatVector-method intersect,SpatRaster,SpatExtent-method intersect,SpatRaster,SpatRaster-method intersect,SpatVector,SpatExtent-method intersect,SpatVector,SpatVector-method
Raster value typesas.bool as.bool,SpatRaster-method as.factor as.factor,SpatRaster-method as.int as.int,SpatRaster-method as.integer,SpatRaster-method as.logical,SpatRaster-method is.bool is.bool,SpatRaster-method is.factor is.factor,SpatRaster-method is.int is.int,SpatRaster-method isFALSE,SpatRaster-method isTRUE,SpatRaster-method
Check if a SpatExtent or SpatVector is emptyis.empty is.empty,SpatExtent-method is.empty,SpatVector-method
Check for longitude/latitude crsis.lonlat is.lonlat,character-method is.lonlat,SpatRaster-method is.lonlat,SpatVector-method
Check for rotationis.rotated is.rotated,SpatRaster-method
Check or fix polygon or extent validityis.valid is.valid,SpatExtent-method is.valid,SpatVector-method makeValid makeValid,SpatVector-method
k_meansk_means k_means,ANY-method k_means,SpatRaster-method
Apply a function to layers of a SpatRaster, or sub-datasets of a SpatRasterDatasetlapp lapp,SpatRaster-method lapp,SpatRasterDataset-method
Correlation and (weighted) covariancelayerCor layerCor,SpatRaster-method
Linear units of the coordinate reference systemlinearUnits linearUnits,SpatRaster-method linearUnits,SpatVector-method
Add points, lines, or polygons to a maplines lines,sf-method lines,SpatExtent-method lines,SpatGraticule-method lines,SpatRaster-method lines,SpatVector-method points points,sf-method points,SpatExtent-method points,SpatRaster-method points,SpatVector-method polys polys,sf-method polys,SpatExtent-method polys,SpatRaster-method polys,SpatVector-method
Make tiles or get their extentsgetTileExtents getTileExtents,SpatRaster-method makeTiles makeTiles,SpatRaster-method
Make a VRT header filemakeVRT
Get the coordinates of the extent of a mapmap_extent
color palettes for mappingmap.pal
Mask values in a SpatRaster or SpatVectormask mask,SpatRaster,sf-method mask,SpatRaster,SpatExtent-method mask,SpatRaster,SpatRaster-method mask,SpatRaster,SpatVector-method mask,SpatVector,sf-method mask,SpatVector,SpatExtent-method mask,SpatVector,SpatVector-method
Value matching for SpatRasters%in% %in%,SpatRaster-method match match,SpatRaster-method
General mathematical methodscumsum cumsum,SpatRaster-method log log,SpatRaster-method math Math,SpatExtent-method Math,SpatRaster-method math,SpatRaster-method Math-methods Math2,SpatExtent-method Math2,SpatRaster-method Math2,SpatVector-method Math2-methods round round,SpatRaster-method round,SpatVector-method sqrt sqrt,SpatRaster-method
Memory available and neededfree_RAM mem_info
Merge SpatRasters, or merge a SpatVector with a data.framemerge merge,SpatRaster,SpatRaster-method merge,SpatRasterCollection,missing-method merge,SpatVector,data.frame-method merge,SpatVector,SpatVector-method
merge SpatRasters by timelines to create a single timeseriesmergeTime mergeTime,SpatRasterDataset-method
metameta meta,SpatRaster-method
Set or get metadatametags metags,SpatRaster-method metags<- metags<-,SpatRaster-method
modal valuemodal modal,SpatRaster-method
mosaic SpatRastersmosaic mosaic,SpatRaster,SpatRaster-method mosaic,SpatRasterCollection,missing-method
Find and remove geometries that are NAis.na,SpatVector-method na.omit na.omit,SpatVector-method
Set the NA flagNAflag NAflag,SpatRaster-method NAflag<- NAflag<-,SpatRaster-method
Names of Spat* objectsname name<- names names,SpatRaster-method names,SpatRasterCollection-method names,SpatRasterDataset-method names,SpatVector-method names,SpatVectorCollection-method names,SpatVectorProxy-method names<- names<-,SpatRaster-method names<-,SpatRasterCollection-method names<-,SpatRasterDataset-method names<-,SpatVector-method names<-,SpatVectorCollection-method
nearby geometriesnearby nearby,SpatVector-method nearest nearest,SpatVector-method
Number of immediate adjacent cells flowing into each cellNIDP NIDP,SpatRaster-method
normalize vector data that crosses the datelinenormalize.longitude normalize.longitude,SpatVector-method
North arrownorth
is not NAnot.na not.na,SpatRaster-method
OptionsterraOptions
Originorigin origin,SpatRaster-method origin<- origin<-,SpatRaster-method
Pairs plot (matrix of scatterplots)pairs pairs,SpatRaster-method
Map panelpanel panel,SpatRaster-method
Detect patches (clumps) of cellspatches patches,SpatRaster-method
Perimeter or lengthperim perim,SpatVector-method perimeter perimeter,SpatVector-method
Perspective plotpersp persp,SpatRaster-method
Pit Finder in a Flow Dir SpatRaster for Watershed Extractionpitfinder pitfinder,SpatRaster-method
Plot with leafletlines,leaflet-method plet plet,missing-method plet,SpatRaster-method plet,SpatVector-method plet,SpatVectorCollection-method points,leaflet-method polys,leaflet-method
Make a mapplot plot,SpatRaster,character-method plot,SpatRaster,missing-method plot,SpatRaster,numeric-method plot,SpatVector,character-method plot,SpatVector,data.frame-method plot,SpatVector,missing-method plot,SpatVector,numeric-method plot,SpatVectorCollection,missing-method plot,SpatVectorProxy,missing-method
Plot a SpatExtentplot,SpatExtent,missing-method
Plot a graticulelines,SpatGraticule,missing-method plot,SpatGraticule,missing-method
Red-Green-Blue plot of a multi-layered SpatRasterplotRGB plotRGB,SpatRaster-method
SpatRaster PCA with prcompprcomp prcomp,SpatRaster-method
Spatial model predictionspredict predict,SpatRaster-method
SpatRaster PCA with princompprincomp princomp,SpatRaster-method
Change the coordinate reference systemproject project,matrix-method project,SpatExtent-method project,SpatRaster-method project,SpatVector-method
Quantiles of spatial dataquantile quantile,SpatRaster-method quantile,SpatVector-method
Query a SpatVectorProxy objectquery query,SpatVectorProxy-method
Fill layers with a rangerangeFill rangeFill,SpatRaster-method
Range-applyrapp rapp,SpatRaster-method
Create a SpatRasterrast rast,ANY-method rast,array-method rast,character-method rast,data.frame-method rast,list-method rast,matrix-method rast,missing-method rast,PackedSpatRaster-method rast,SpatExtent-method rast,SpatRaster-method rast,SpatRasterDataset-method rast,SpatVector-method rast,stars-method rast,stars_proxy-method
Rasterize vector datarasterize rasterize,matrix,SpatRaster-method rasterize,sf,SpatRaster-method rasterize,SpatVector,SpatRaster-method
Rasterize geometric properties of vector datarasterizeGeom rasterizeGeom,SpatVector,SpatRaster-method
Rasterize points with a moving windowrasterizeWin rasterizeWin,data.frame,SpatRaster-method rasterizeWin,SpatVector,SpatRaster-method
Combine row, column, and layer numbersrcl rcl,SpatRaster-method
Read from, or write to, fileblocks blocks,SpatRaster-method fileBlocksize readStart readStart,SpatRaster-method readStart,SpatRasterDataset-method readStop readStop,SpatRaster-method readStop,SpatRasterDataset-method readValues readValues,SpatRaster-method writeStart writeStart,SpatRaster,character-method writeStop writeStop,SpatRaster-method writeValues writeValues,SpatRaster,vector-method
Rectify a SpatRasterrectify rectify,SpatRaster-method
Cell level regressionregress regress,SpatRaster,numeric-method regress,SpatRaster,SpatRaster-method
Spatial relationships between geometriesis.related is.related,SpatExtent,SpatRaster-method is.related,SpatExtent,SpatVector-method is.related,SpatRaster,SpatExtent-method is.related,SpatRaster,SpatRaster-method is.related,SpatRaster,SpatVector-method is.related,SpatVector,SpatExtent-method is.related,SpatVector,SpatRaster-method is.related,SpatVector,SpatVector-method relate relate,SpatExtent,SpatExtent-method relate,SpatExtent,SpatRaster-method relate,SpatExtent,SpatVector-method relate,SpatRaster,SpatExtent-method relate,SpatRaster,SpatRaster-method relate,SpatRaster,SpatVector-method relate,SpatVector,missing-method relate,SpatVector,SpatExtent-method relate,SpatVector,SpatRaster-method relate,SpatVector,SpatVector-method
Replicate layersrep rep,SpatRaster-method
Replace with $<-$<- $<-,SpatExtent-method $<-,SpatRaster-method $<-,SpatVector-method
Replace layers or variables[[<- [[<-,SpatRaster,character-method [[<-,SpatRaster,numeric-method [[<-,SpatVector,character-method [[<-,SpatVector,numeric-method
Replace values of a SpatRaster[<- [<-,SpatExtent,numeric,missing-method [<-,SpatRaster,ANY,ANY,ANY-method [<-,SpatRaster,ANY,ANY-method [<-,SpatVector,ANY,ANY-method [<-,SpatVector,ANY,missing-method [<-,SpatVector,missing,ANY-method
Transfer values of a SpatRaster to another one with a different geometryresample resample,SpatRaster,SpatRaster-method
rescalerescale rescale,SpatRaster-method rescale,SpatVector-method
Layers representing colorscolorize colorize,SpatRaster-method has.RGB has.RGB,SpatRaster-method RGB RGB,SpatRaster-method RGB<- RGB<-,SpatRaster-method
Rolling (moving) functionsroll roll,numeric-method roll,SpatRaster-method
Rotate data along longituderotate rotate,SpatRaster-method rotate,SpatVector-method
Compare coordinate reference systemssame.crs
Apply a terra function that takes only a single layer and returns a SpatRaster to all layers of a SpatRastersapp sapp,SpatRaster-method sapp,SpatRasterDataset-method
scale barsbar
Scale valuesscale scale,SpatRaster-method
Scatterplot of two SpatRaster layersplot,SpatRaster,SpatRaster-method
Scale (gain) and offsetscoff scoff,SpatRaster-method scoff<- scoff<-,SpatRaster-method
Create a SpatRasterDatasetsds sds,array-method sds,character-method sds,list-method sds,missing-method sds,SpatRaster-method sds,stars-method sds,stars_proxy-method [<-,SpatRasterDataset,numeric,missing-method
segregatesegregate segregate,SpatRaster-method
Spatial selectionsel sel,SpatRaster-method sel,SpatVector-method
select cells with high or low valuesselectHighest selectHighest,SpatRaster-method
Select the values of a range of layers, as specified by cell values in another SpatRasterselectRange selectRange,SpatRaster-method
saveRDS and serialize for SpatVector and SpatRaster*readRDS readRDS,character-method saveRDS saveRDS,SpatRaster-method saveRDS,SpatRasterCollection-method saveRDS,SpatRasterDataset-method saveRDS,SpatVector-method serialize serialize,SpatRaster-method serialize,SpatRasterCollection-method serialize,SpatRasterDataset-method serialize,SpatVector-method unserialize unserialize,ANY-method
Set the values of raster cells or of geometry attributessetValues setValues,SpatRaster,ANY-method setValues,SpatRaster-method setValues,SpatVector,ANY-method setValues,SpatVector-method values<- values<-,SpatRaster,ANY-method values<-,SpatVector,ANY-method values<-,SpatVector,data.frame-method values<-,SpatVector,matrix-method values<-,SpatVector,NULL-method
Hill shadingshade
Shared pathssharedPaths sharedPaths,SpatVector-method
Shiftshift shift,SpatExtent-method shift,SpatRaster-method shift,SpatVector-method
Sieve filtersieve sieve,SpatRaster-method
simplifyGeom geometriessimplifyGeom simplifyGeom,SpatVector-method
Sort a SpatRaster or SpatVectorsort sort,data.frame-method sort,SpatRaster-method sort,SpatVector-method
Data sources of a SpatRasterhasValues hasValues,SpatRaster-method inMemory inMemory,SpatRaster-method sources sources,SpatRaster-method sources,SpatRasterCollection-method sources,SpatRasterDataset-method sources,SpatVector-method sources,SpatVectorProxy-method
Class "SpatExtent"Rcpp_SpatExtent-class show,SpatExtent-method SpatExtent SpatExtent-class
SpatRaster classPackedSpatRaster-class RasterSource RasterSource-class Rcpp_RasterSource-class Rcpp_SpatCategories-class Rcpp_SpatRaster-class show,SpatRaster-method SpatCategories SpatCategories-class SpatRaster SpatRaster-class SpatRasterCollection SpatRasterCollection-class SpatRasterDataset SpatRasterDataset-class
Take a regular samplespatSample spatSample,SpatExtent-method spatSample,SpatRaster-method spatSample,SpatVector-method
Class "SpatVector"PackedSpatVector-class Rcpp_SpatVector-class show,SpatVector-method SpatVector SpatVector-class SpatVectorCollection SpatVectorCollection-class SpatVectorProxy SpatVectorProxy-class
spin a SpatVectorspin spin,SpatVector-method
Splitsplit split,SpatRaster,ANY-method split,SpatVector,ANY-method split,SpatVector,SpatVector-method
Create a SpatRasterCollectionsprc sprc,character-method sprc,list-method sprc,missing-method sprc,SpatRaster-method
Stretchstretch stretch,SpatRaster-method
Subset a SpatRaster or a SpatVectorsubset subset,SpatRaster-method subset,SpatVector-method
Subset a SpatRaster or a SpatVector$ $,SpatExtent-method $,SpatRaster-method $,SpatRasterDataset-method $,SpatVector-method $,SpatVectorCollection-method
Subset a SpatRaster or a SpatVector[[ [[,SpatRaster,ANY,missing-method [[,SpatRaster,character,missing-method [[,SpatRaster,logical,missing-method [[,SpatRaster,numeric,missing-method [[,SpatRasterDataset,ANY,ANY-method [[,SpatVector,character,missing-method [[,SpatVector,logical,missing-method [[,SpatVector,numeric,missing-method [[,SpatVectorCollection,ANY,missing-method
Extract values from a SpatRaster, SpatVector or SpatExtent[ [,SpatExtent,missing,missing-method [,SpatExtent,numeric,missing-method [,SpatRaster,ANY,ANY,ANY-method [,SpatRaster,ANY,ANY-method [,SpatRaster,data.frame,missing-method [,SpatRaster,matrix,missing-method [,SpatRaster,missing,missing-method [,SpatRaster,missing,numeric-method [,SpatRaster,numeric,missing-method [,SpatRaster,numeric,numeric-method [,SpatRaster,SpatExtent,missing-method [,SpatRaster,SpatRaster,missing-method [,SpatRaster,SpatVector,missing-method [,SpatRasterCollection,numeric,missing-method [,SpatRasterDataset,character,missing-method [,SpatRasterDataset,logical,missing-method [,SpatRasterDataset,missing,logical-method [,SpatRasterDataset,missing,numeric-method [,SpatRasterDataset,numeric,logical-method [,SpatRasterDataset,numeric,missing-method [,SpatRasterDataset,numeric,numeric-method [,SpatVector,character,missing-method [,SpatVector,data.frame,ANY-method [,SpatVector,data.frame,missing-method [,SpatVector,logical,character-method [,SpatVector,logical,logical-method [,SpatVector,logical,missing-method [,SpatVector,logical,numeric-method [,SpatVector,matrix,missing-method [,SpatVector,missing,character-method [,SpatVector,missing,logical-method [,SpatVector,missing,missing-method [,SpatVector,missing,numeric-method [,SpatVector,numeric,character-method [,SpatVector,numeric,logical-method [,SpatVector,numeric,missing-method [,SpatVector,numeric,numeric-method [,SpatVector,SpatExtent,missing-method [,SpatVector,SpatVector,missing-method
replace cell valuessubst subst,SpatRaster-method
Summarizeall all,SpatRaster-method allNA allNA,SpatRaster-method any any,SpatRaster-method anyNA anyNA,SpatRaster-method countNA countNA,SpatRaster-method max max,SpatRaster-method mean mean,SpatExtent-method mean,SpatRaster-method mean,SpatVector-method median median,SpatRaster-method median,SpatVector-method min min,SpatRaster-method noNA noNA,SpatRaster-method prod prod,SpatRaster-method range range,SpatRaster-method stdev stdev,SpatRaster-method sum sum,SpatRaster-method Summary-methods which.max which.max,SpatRaster-method which.min which.min,SpatRaster-method
summarysummary Summary,SpatExtent-method Summary,SpatRaster-method summary,SpatRaster-method Summary,SpatVector-method summary,SpatVector-method
Create a SpatVectorCollectionsvc svc,character-method svc,list-method svc,missing-method svc,sf-method svc,SpatVector-method [,SpatVectorCollection,numeric,missing-method [<-,SpatVectorCollection,numeric,missing-method [[,SpatVectorCollection,numeric,missing-method
Symmetrical differencesymdif symdif,SpatVector,SpatVector-method
Apply a function to subsets of layers of a SpatRastertapp tapp,SpatRaster-method
terrain characteristicsterrain terrain,SpatRaster-method
Add labels to a maptext text,SpatRaster-method text,SpatVector-method
tighten SpatRaster or SpatRasterDataset objectstighten tighten,SpatRaster-method tighten,SpatRasterDataset-method
time of SpatRaster layershas.time has.time,SpatRaster-method has.time,SpatRasterDataset-method time time,SpatRaster-method time,SpatRasterDataset-method time<- time<-,SpatRaster-method time<-,SpatRasterDataset-method timeInfo timeInfo,SpatRaster-method timeInfo,SpatRasterDataset-method
Temporary filestmpFiles
Vector topology methodsemptyGeoms emptyGeoms,SpatVector-method makeNodes makeNodes,SpatVector-method mergeLines mergeLines,SpatVector-method removeDupNodes removeDupNodes,SpatVector-method snap snap,SpatVector-method topology
Transposet t,SpatRaster-method t,SpatVector-method trans trans,SpatRaster-method
Trim a SpatRastertrim trim,SpatRaster-method
Union SpatVector or SpatExtent objectsunion union,SpatExtent,SpatExtent-method union,SpatVector,missing-method union,SpatVector,SpatExtent-method union,SpatVector,SpatVector-method
Unique valuesunique unique,SpatRaster,ANY-method unique,SpatRaster-method unique,SpatVector,ANY-method unique,SpatVector-method
units of SpatRaster or SpatRasterDataSetunits units,SpatRaster-method units,SpatRasterDataset-method units<- units<-,SpatRaster-method units<-,SpatRasterDataset-method
Change values in a fileupdate update,SpatRaster-method
Cell values and geometry attributesvalues values,SpatRaster-method values,SpatVector-method
variable and long variable nameslongnames longnames,SpatRaster-method longnames,SpatRasterDataset-method longnames<- longnames<-,SpatRaster-method longnames<-,SpatRasterDataset-method varnames varnames,SpatRaster-method varnames,SpatRasterDataset-method varnames<- varnames<-,SpatRaster-method varnames<-,SpatRasterDataset-method
Create SpatVector objectsvect vect,character-method vect,data.frame-method vect,list-method vect,matrix-method vect,missing-method vect,PackedSpatVector-method vect,sf-method vect,sfc-method vect,SpatExtent-method vect,Spatial-method vect,SpatVector-method vect,SpatVectorCollection-method vect,XY-method
List or remove layers from a vector filevector_layers
Compute a viewshedviewshed viewshed,SpatRaster-method
Voronoi diagram and Delaunay trianglesdelaunay delaunay,SpatVector-method voronoi voronoi,SpatVector-method
Virtual Raster Datasetvrt vrt,character-method
filenames of VRT tilesvrt_tiles
Catchment delineationwatershed watershed,SpatRaster-method
Weighted mean of layersweighted.mean weighted.mean,SpatRaster,numeric-method weighted.mean,SpatRaster,SpatRaster-method
Where are the cells with the min or max values?where.max where.max,SpatRaster-method where.min where.min,SpatRaster-method
Which cells are TRUE?which.lyr which.lyr,SpatRaster-method
SpatVector geometric propertiesclearance clearance,SpatVector-method width width,SpatVector-method
Set a windowwindow window,SpatRaster-method window<- window<-,SpatRaster-method
wrap and unwrapunwrap unwrap,ANY-method unwrap,PackedSpatRaster-method unwrap,PackedSpatRasterDC-method unwrap,PackedSpatVector-method wrap wrap,SpatRaster-method wrap,SpatRasterCollection-method wrap,SpatRasterDataset-method wrap,SpatVector-method
SpatRaster wrap with caching optionswrapCache wrapCache,SpatRaster-method
Write raster data to a NetCDF filewriteCDF writeCDF,SpatRaster-method writeCDF,SpatRasterDataset-method
Write raster data to a filewriteRaster writeRaster,SpatRaster,character-method
Write SpatVector data to a filewriteVector writeVector,SpatVector,character-method
Apply a function to the cells of a two SpatRastersxapp xapp,SpatRaster,SpatRaster-method
Get or set single values of an extentxmax xmax,SpatExtent-method xmax,SpatRaster-method xmax,SpatVector-method xmax<- xmax<-,SpatExtent,numeric-method xmax<-,SpatRaster,numeric-method xmin xmin,SpatExtent-method xmin,SpatRaster-method xmin,SpatVector-method xmin<- xmin<-,SpatExtent,numeric-method xmin<-,SpatRaster,numeric-method ymax ymax,SpatExtent-method ymax,SpatRaster-method ymax,SpatVector-method ymax<- ymax<-,SpatExtent,numeric-method ymax<-,SpatRaster,numeric-method ymin ymin,SpatExtent-method ymin,SpatRaster-method ymin,SpatVector-method ymin<- ymin<-,SpatExtent,numeric-method ymin<-,SpatRaster,numeric-method
Coordinates from a row, column or cell number and vice versacellFromRowCol cellFromRowCol,SpatRaster,numeric,numeric-method cellFromRowColCombine cellFromRowColCombine,SpatRaster,numeric,numeric-method cellFromXY cellFromXY,SpatRaster,data.frame-method cellFromXY,SpatRaster,matrix-method colFromCell colFromCell,SpatRaster,numeric-method colFromX colFromX,SpatRaster,numeric-method rowColCombine rowColCombine,SpatRaster,numeric,numeric-method rowColFromCell rowColFromCell,SpatRaster,numeric-method rowFromCell rowFromCell,SpatRaster,numeric-method rowFromY rowFromY,SpatRaster,numeric-method xFromCell xFromCell,SpatRaster,numeric-method xFromCol xFromCol,SpatRaster,missing-method xFromCol,SpatRaster,numeric-method xyFromCell xyFromCell,SpatRaster,numeric-method yFromCell yFromCell,SpatRaster,numeric-method yFromRow yFromRow,SpatRaster,missing-method yFromRow,SpatRaster,numeric-method
Zonal statisticszonal zonal,SpatRaster,SpatRaster-method zonal,SpatRaster,SpatVector-method zonal,SpatVector,SpatVector-method
Zoom in on a mapzoom zoom,SpatRaster-method zoom,SpatVector-method