Package: terra 1.8-5
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:
terra_1.8-5.tar.gz
terra_1.8-5.tar.gz(r-4.5-noble)terra_1.8-5.tar.gz(r-4.4-noble)
terra_1.8-5.tgz(r-4.4-emscripten)terra_1.8-5.tgz(r-4.3-emscripten)
terra.pdf |terra.html✨
terra/json (API)
NEWS
# Install 'terra' in R: |
install.packages('terra', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/rspatial/terra/issues
Pkgdown site:https://rspatial.github.io
Last updated 19 days agofrom:6156888fec. Checks:OK: 2. Indexed: no.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Dec 12 2024 |
R-4.5-linux-x86_64 | OK | Dec 12 2024 |
Exports:%in%activeCatactiveCat<-add_boxadd_gridadd_legendadd_mtextadd<-addCatsadjacentaggregatealignall.equalallNAanimateappapproximateareaArithas.arrayas.boolas.contouras.data.frameas.factoras.intas.linesas.listas.matrixas.pointsas.polygonsas.rasteratan_2atan2autocorbarplotbestMatchblocksboundariesboxplotbuffercartogramcatalyzecategoriescatscbind2cellFromRowColcellFromRowColCombinecellFromXYcellscellSizecentroidsclampclamp_tsclassifyclearanceclickcolFromCellcolFromXcolMeanscolorizecolSumscoltabcoltab<-combineGeomscompareComparecompareGeomconcatscontourconvHullcostDistcountNAcovercrdscropcrosstabcrscrs<-datatypedeepcopydelaunaydensifydensitydepthdepth<-describediffdirectiondisaggdistancedotsdrawdroplevelselongateemptyGeomseraseexpanseextext<-extendextractextractAlongextractRangefileBlocksizefillHolesfillTimeflipflowAccumulationfocalfocal3DfocalCppfocalMatfocalPairsfocalRegfocalValuesforceCCWfree_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<-rollrotateroundrowColCombinerowColFromCellrowFromCellrowFromYrowMeansrowSumssame.crssappsaveRDSsbarscalescoffscoff<-sdssegregateselselectHighestselectRangeserializeset.catsset.crsset.extset.namesset.RGBset.valuessetGDALconfigsetMinMaxsetValuesshadesharedPathsshiftsievesimplifyGeomsizesnapsortsourcesspatSamplespinsplitsprcstdevstretchsubsetsubstsummarySummarysurfAreasvcsymdifttailtappterrainterraOptionstexttightentimetime<-timeInfotmpFilestoMemorytranstrimunionuniqueunitsunits<-unserializeunwrapupdatevaluesvalues<-varnamesvarnames<-vectvector_layersviewshedvoronoivrtvrt_tileswatershedweighted.meanwhere.maxwhere.minwhich.lyrwhich.maxwhich.minwidthwindowwindow<-wrapwrapCachewriteCDFwriteRasterwriteStartwriteStopwriteValueswriteVectorxappxFromCellxFromColxmaxxmax<-xminxmin<-xresxyFromCellyFromCellyFromRowymaxymax<-yminymin<-yreszonalzoom
Dependencies:Rcpp
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Description of the methods in the terra package | terra-package terra |
Active category | activeCat activeCat,SpatRaster-method activeCat<- activeCat<-,SpatRaster-method |
Add (in place) a SpatRaster to another SpatRaster or to a SpatRasterDataset or SpatRasterCollection | add<- add<-,SpatRaster,SpatRaster-method add<-,SpatRasterCollection,SpatRaster-method add<-,SpatRasterDataset,SpatRaster-method |
draw a box | add_box |
add a grid to a map made with terra | add_grid |
add a custom legend | add_legend |
draw a box | add_mtext |
Adjacent cells | adjacent adjacent,SpatRaster-method adjacent,SpatVector-method |
Aggregate raster or vector data | aggregate aggregate,SpatRaster-method aggregate,SpatVector-method |
Align a SpatExtent | align align,SpatExtent,numeric-method align,SpatExtent,SpatRaster-method |
Compare two SpatRasters for equality | all.equal all.equal,SpatRaster,SpatRaster-method |
Animate a SpatRaster | animate animate,SpatRaster-method |
Apply a function to the cells of a SpatRaster | app app,SpatRaster-method app,SpatRasterDataset-method |
Estimate values for cell values that are 'NA' by interpolating between layers | approximate approximate,SpatRaster-method |
Arithmetic | Arith,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 object | as.character,SpatExtent-method as.character,SpatRaster-method |
SpatRaster or SpatVector to data.frame | as.data.frame as.data.frame,SpatRaster-method as.data.frame,SpatVector-method |
Conversion to a SpatVector of lines | as.lines as.lines,matrix-method as.lines,SpatExtent-method as.lines,SpatRaster-method as.lines,SpatVector-method |
Coerce a Spat* object to a list | as.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 points | as.points as.points,SpatExtent-method as.points,SpatRaster-method as.points,SpatVector-method |
Conversion to a SpatVector of polygons | as.polygons as.polygons,SpatExtent-method as.polygons,SpatRaster-method as.polygons,SpatVector-method |
Coerce to a "raster" object | as.raster as.raster,SpatRaster-method |
Two argument arc-tangent | atan2 atan2,SpatRaster,SpatRaster-method atan_2 atan_2,SpatRaster,SpatRaster-method |
Spatial autocorrelation | autocor autocor,numeric-method autocor,SpatRaster-method |
Bar plot of a SpatRaster | barplot barplot,SpatRaster-method |
bestMatch | bestMatch bestMatch,SpatRaster,data.frame-method bestMatch,SpatRaster,SpatVector-method |
Detect boundaries (edges) | boundaries boundaries,SpatRaster-method |
Box plot of SpatRaster data | boxplot boxplot,SpatRaster-method |
Create a buffer around vector geometries or raster patches | buffer buffer,SpatRaster-method buffer,SpatVector-method |
Combine SpatRaster or SpatVector objects | c c,SpatRaster-method c,SpatRasterCollection-method c,SpatRasterDataset-method c,SpatVector-method c,SpatVectorCollection-method rbind rbind.SpatVector |
Cartogram | cartogram cartogram,SpatVector-method |
Factors to numeric | as.numeric as.numeric,SpatRaster-method catalyze catalyze,SpatRaster-method |
Get cell numbers | cells cells,SpatRaster,missing-method cells,SpatRaster,numeric-method cells,SpatRaster,SpatExtent-method cells,SpatRaster,SpatVector-method |
Area covered by each raster cell | cellSize cellSize,SpatRaster-method |
Centroids | centroids centroids,SpatVector-method |
Clamp values | clamp clamp,numeric-method clamp,SpatRaster-method |
clamp time series data | clamp_ts clamp_ts,numeric-method clamp_ts,SpatRaster-method |
Classify (or reclassify) cell values | classify classify,SpatRaster-method |
Query by clicking on a map | click click,missing-method click,SpatRaster-method click,SpatVector-method |
Coercion to vector, matrix or array | as.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 table | coltab coltab,SpatRaster-method coltab<- coltab<-,SpatRaster-method has.colors has.colors,SpatRaster-method |
Combine geometries | combineGeoms 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 | compareGeom 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 rasters | concats concats,SpatRaster-method |
Contour plot | as.contour as.contour,SpatRaster-method contour contour,SpatRaster-method |
Convex hull, minimal bounding rotated rectangle, and minimal bounding circle | convHull convHull,SpatVector-method minCircle minCircle,SpatVector-method minRect minRect,SpatVector-method |
Cost-distance | costDist costDist,SpatRaster-method |
Replace values with values from another object | cover cover,SpatRaster,SpatRaster-method cover,SpatVector,SpatVector-method |
Get the coordinates of SpatVector geometries or SpatRaster cells | crds crds,SpatRaster-method crds,SpatVector-method |
Cut out a geographic subset | crop crop,SpatGraticule-method crop,SpatRaster-method crop,SpatRasterCollection-method crop,SpatRasterDataset-method crop,SpatVector-method |
Cross-tabulate | crosstab crosstab,SpatRaster,missing-method |
Get or set a coordinate reference system | crs 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 SpatVector | datatype datatype,SpatRaster-method datatype,SpatVector-method |
Deep copy | deepcopy deepcopy,SpatRaster-method deepcopy,SpatVector-method |
Add additional nodes to lines or polygons | densify densify,SpatVector-method |
Density plot | density density,SpatRaster-method |
deprecated methods | gridDistance gridDistance,SpatRaster-method |
depth of SpatRaster layers | depth depth,SpatRaster-method depth<- depth<-,SpatRaster-method |
describe | describe describe,character-method |
Lagged differences | diff diff,SpatRaster-method |
Dimensions of a SpatRaster or SpatVector and related objects | dim 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 |
Direction | direction direction,SpatRaster-method |
Disaggregate raster cells or vector geometries | disagg disagg,SpatRaster-method disagg,SpatVector-method |
Geographic distance | distance 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 map | dots dots,SpatVector-method |
Draw a polygon, line, extent, or points | draw draw,character-method draw,missing-method |
elongate lines | elongate elongate,SpatVector-method |
Erase parts of a SpatVector object | erase 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 cells | area area,SpatRaster-method area,SpatVector-method expanse expanse,SpatRaster-method expanse,SpatVector-method |
Create, get or set a SpatExtent | ext 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 |
Extend | extend extend,SpatExtent-method extend,SpatRaster-method |
Extract values from a SpatRaster | extract 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 lines | extractAlong |
Extract values for a range of layers from a SpatRaster | extractRange extractRange,SpatRaster,ANY-method extractRange,SpatRaster-method |
Get or compute the minimum and maximum cell values | hasMinMax hasMinMax,SpatRaster-method minmax minmax,SpatRaster-method setMinMax setMinMax,SpatRaster-method |
Categorical rasters | addCats 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 polygons | fillHoles fillHoles,SpatVector-method |
Fill time gaps in a SpatRaster | fillTime fillTime,SpatRaster-method |
Flip or reverse a raster | flip flip,SpatRaster-method flip,SpatVector-method rev rev,SpatRaster-method |
Flow accumulation | flowAccumulation flowAccumulation,SpatRaster-method |
Focal values | focal focal,SpatRaster-method |
Three-dimensional focal values | focal3D focal3D,SpatRaster-method |
Compute focal values with an iterating C++ function | focalCpp focalCpp,SpatRaster-method |
Focal weights matrix | focalMat |
Focal function across two layers | focalCor focalCor,SpatRaster-method focalPairs focalPairs,SpatRaster-method |
Focal regression | focalReg focalReg,SpatRaster-method |
Get focal values | focalValues focalValues,SpatRaster-method |
force counter-clockwise polygons | forceCCW forceCCW,SpatVector-method |
Frequency table | freq freq,SpatRaster-method |
Find gaps between polygons | gaps gaps,SpatVector,SpatExtent-method gaps,SpatVector-method |
GDAL version, supported file formats, and cache size | gdal gdalCache getGDALconfig setGDALconfig |
Get the geometry (coordinates) of a SpatVector | geom geom,SpatVector-method |
Geometry type of a SpatVector | geomtype 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 statistics | global global,SpatRaster-method |
Create a graticule | graticule |
Distance on a grid | gridDist gridDist,SpatRaster-method |
Add halo-ed text to a plot | halo |
head and tail of a SpatRaster or SpatVector | head head,SpatRaster-method head,SpatVector-method tail tail,SpatRaster-method tail,SpatVector-method |
Histogram | hist hist,SpatRaster-method |
Compare two SpatRasters for equality | identical identical,SpatRaster,SpatRaster-method |
ifelse for SpatRasters | ifel ifel,SpatRaster-method |
SpatRaster image method | image image,SpatRaster-method |
Impose the geometry of a SpatRaster to those in a SpatRasterCollection. | impose impose,SpatRasterCollection-method |
Initialize a SpatRaster with values | init init,SpatRaster-method |
Change values in-place | set.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 set.values,SpatRasterDataset-method |
Make an inset map | inext inext,SpatVector-method inset inset,SpatRaster-method inset,SpatVector-method |
Interpolate points using a moving window | interpIDW interpIDW,SpatRaster,matrix-method interpIDW,SpatRaster,SpatVector-method |
Nearest neighbor interpolation | interpNear interpNear,SpatRaster,matrix-method interpNear,SpatRaster,SpatVector-method |
Spatial interpolation | interpolate interpolate,SpatRaster-method |
Intersection | intersect 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 types | as.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 empty | is.empty is.empty,SpatExtent-method is.empty,SpatVector-method |
Check for longitude/latitude crs | is.lonlat is.lonlat,character-method is.lonlat,SpatRaster-method is.lonlat,SpatVector-method |
Check for rotation | is.rotated is.rotated,SpatRaster-method |
Check or fix polygon or extent validity | is.valid is.valid,SpatExtent-method is.valid,SpatVector-method makeValid makeValid,SpatVector-method |
k_means | k_means k_means,ANY-method k_means,SpatRaster-method |
Apply a function to layers of a SpatRaster, or sub-datasets of a SpatRasterDataset | lapp lapp,SpatRaster-method lapp,SpatRasterDataset-method |
Correlation and (weighted) covariance | layerCor layerCor,SpatRaster-method |
Linear units of the coordinate reference system | linearUnits linearUnits,SpatRaster-method linearUnits,SpatVector-method |
Add points, lines, or polygons to a map | lines 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 extents | getTileExtents getTileExtents,SpatRaster-method makeTiles makeTiles,SpatRaster-method |
Make a VRT header file | makeVRT |
Get the coordinates of the extent of a map | map_extent |
color palettes for mapping | map.pal |
Mask values in a SpatRaster or SpatVector | mask 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 methods | cumsum 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 needed | free_RAM mem_info |
Merge SpatRasters, or merge a SpatVector with a data.frame | merge 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 timeseries | mergeTime mergeTime,SpatRasterDataset-method |
meta | meta meta,SpatRaster-method |
Set or get metadata | metags metags,SpatRaster-method metags,SpatRasterDataset-method metags<- metags<-,SpatRaster-method metags<-,SpatRasterDataset-method |
modal value | modal modal,SpatRaster-method |
mosaic SpatRasters | mosaic mosaic,SpatRaster,SpatRaster-method mosaic,SpatRasterCollection,missing-method |
Find and remove geometries that are NA | is.na,SpatVector-method na.omit na.omit,SpatVector-method |
Set the NA flag | NAflag NAflag,SpatRaster-method NAflag<- NAflag<-,SpatRaster-method |
Names of Spat* objects | name 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 geometries | nearby nearby,SpatVector-method nearest nearest,SpatVector-method |
Number of immediate adjacent cells flowing into each cell | NIDP NIDP,SpatRaster-method |
normalize vector data that crosses the dateline | normalize.longitude normalize.longitude,SpatVector-method |
North arrow | north |
is not NA | not.na not.na,SpatRaster-method |
Options | terraOptions |
Origin | origin origin,SpatRaster-method origin<- origin<-,SpatRaster-method |
Pairs plot (matrix of scatterplots) | pairs pairs,SpatRaster-method |
Map panel | panel panel,SpatRaster-method |
Detect patches (clumps) of cells | patches patches,SpatRaster-method |
Perimeter or length | perim perim,SpatVector-method perimeter perimeter,SpatVector-method |
Perspective plot | persp persp,SpatRaster-method |
Pit Finder in a Flow Dir SpatRaster for Watershed Extraction | pitfinder pitfinder,SpatRaster-method |
Plot with leaflet | lines,leaflet-method plet plet,missing-method plet,SpatRaster-method plet,SpatVector-method plet,SpatVectorCollection-method points,leaflet-method polys,leaflet-method |
Make a map | plot 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 SpatExtent | plot,SpatExtent,missing-method |
Plot a graticule | lines,SpatGraticule,missing-method plot,SpatGraticule,missing-method |
Red-Green-Blue plot of a multi-layered SpatRaster | plotRGB plotRGB,SpatRaster-method |
SpatRaster PCA with prcomp | prcomp prcomp,SpatRaster-method |
Spatial model predictions | predict predict,SpatRaster-method |
SpatRaster PCA with princomp | princomp princomp,SpatRaster-method |
Change the coordinate reference system | project project,matrix-method project,SpatExtent-method project,SpatRaster-method project,SpatVector-method |
Quantiles of spatial data | quantile quantile,SpatRaster-method quantile,SpatVector-method |
Query a SpatVectorProxy object | query query,SpatVectorProxy-method |
Fill layers with a range | rangeFill rangeFill,SpatRaster-method |
Range-apply | rapp rapp,SpatRaster-method |
Create a SpatRaster | rast 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 data | rasterize rasterize,matrix,SpatRaster-method rasterize,sf,SpatRaster-method rasterize,SpatVector,SpatRaster-method |
Rasterize geometric properties of vector data | rasterizeGeom rasterizeGeom,SpatVector,SpatRaster-method |
Rasterize points with a moving window | rasterizeWin rasterizeWin,data.frame,SpatRaster-method rasterizeWin,SpatVector,SpatRaster-method |
Combine row, column, and layer numbers | rcl rcl,SpatRaster-method |
Read from, or write to, file | blocks 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 SpatRaster | rectify rectify,SpatRaster-method |
Cell level regression | regress regress,SpatRaster,numeric-method regress,SpatRaster,SpatRaster-method |
Spatial relationships between geometries | is.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 layers | rep 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 geometry | resample resample,SpatRaster,SpatRaster-method |
rescale | rescale rescale,SpatRaster-method rescale,SpatVector-method |
Layers representing colors | colorize colorize,SpatRaster-method has.RGB has.RGB,SpatRaster-method RGB RGB,SpatRaster-method RGB<- RGB<-,SpatRaster-method |
Rolling (moving) functions | roll roll,numeric-method roll,SpatRaster-method |
Rotate data along longitude | rotate rotate,SpatRaster-method rotate,SpatVector-method |
row/col sums and means for SpatRaster | colMeans colMeans,SpatRaster-method colSums colSums,SpatRaster-method rowMeans rowMeans,SpatRaster-method rowSums rowSums,SpatRaster-method |
Compare coordinate reference systems | same.crs |
Apply a terra function that takes only a single layer and returns a SpatRaster to all layers of a SpatRaster | sapp sapp,SpatRaster-method sapp,SpatRasterDataset-method |
scale bar | sbar |
Scale values | scale scale,SpatRaster-method |
Scatterplot of two SpatRaster layers | plot,SpatRaster,SpatRaster-method |
Scale (gain) and offset | scoff scoff,SpatRaster-method scoff<- scoff<-,SpatRaster-method |
Create a SpatRasterDataset | sds 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 |
segregate | segregate segregate,SpatRaster-method |
Spatial selection | sel sel,SpatRaster-method sel,SpatVector-method |
select cells with high or low values | selectHighest selectHighest,SpatRaster-method |
Select the values of a range of layers, as specified by cell values in another SpatRaster | selectRange selectRange,SpatRaster-method |
saveRDS and serialize for SpatVector and SpatRaster* | readRDS readRDS,character-method saveRDS saveRDS,SpatExtent-method saveRDS,SpatRaster-method saveRDS,SpatRasterCollection-method saveRDS,SpatRasterDataset-method saveRDS,SpatVector-method serialize serialize,SpatExtent-method 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 attributes | setValues 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 shading | shade |
Shared paths | sharedPaths sharedPaths,SpatVector-method |
Shift | shift shift,SpatExtent-method shift,SpatRaster-method shift,SpatVector-method |
Sieve filter | sieve sieve,SpatRaster-method |
simplifyGeom geometries | simplifyGeom simplifyGeom,SpatVector-method |
Sort a SpatRaster or SpatVector | sort sort,data.frame-method sort,SpatRaster-method sort,SpatVector-method |
Data sources of a SpatRaster | hasValues 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 class | PackedSpatRaster-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 sample | spatSample 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 SpatVector | spin spin,SpatVector-method |
Split a SpatRaster or SpatVector | split split,SpatRaster,ANY-method split,SpatVector,ANY-method split,SpatVector,SpatVector-method |
Create a SpatRasterCollection | sprc sprc,character-method sprc,list-method sprc,missing-method sprc,SpatRaster-method |
Stretch | stretch stretch,SpatRaster-method |
Subset a SpatRaster or a SpatVector | subset 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 values | subst subst,SpatRaster-method |
Summarize | all 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 |
summary | summary Summary,SpatExtent-method Summary,SpatRaster-method summary,SpatRaster-method Summary,SpatVector-method summary,SpatVector-method |
Compute surface area from elevation data | surfArea surfArea,SpatRaster-method |
Create a SpatVectorCollection | svc 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 difference | symdif symdif,SpatVector,SpatVector-method |
Apply a function to subsets of layers of a SpatRaster | tapp tapp,SpatRaster-method |
terrain characteristics | terrain terrain,SpatRaster-method |
Add labels to a map | text text,SpatRaster-method text,SpatVector-method |
tighten SpatRaster or SpatRasterDataset objects | tighten tighten,SpatRaster-method tighten,SpatRasterDataset-method |
time of SpatRaster layers | has.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 files | tmpFiles |
Read all cell values into memory | toMemory toMemory,SpatRaster-method toMemory,SpatRasterDataset-method |
Vector topology methods | emptyGeoms emptyGeoms,SpatVector-method makeNodes makeNodes,SpatVector-method mergeLines mergeLines,SpatVector-method removeDupNodes removeDupNodes,SpatVector-method snap snap,SpatVector-method topology |
Transpose | t t,SpatRaster-method t,SpatVector-method trans trans,SpatRaster-method |
Trim a SpatRaster | trim trim,SpatRaster-method |
Union SpatVector or SpatExtent objects | union union,SpatExtent,SpatExtent-method union,SpatVector,missing-method union,SpatVector,SpatExtent-method union,SpatVector,SpatVector-method |
Unique values | unique unique,SpatRaster,ANY-method unique,SpatRaster-method unique,SpatVector,ANY-method unique,SpatVector-method |
units of SpatRaster or SpatRasterDataSet | units units,SpatRaster-method units,SpatRasterDataset-method units<- units<-,SpatRaster-method units<-,SpatRasterDataset-method |
Change values in a file | update update,SpatRaster-method |
Cell values and geometry attributes | values values,SpatRaster-method values,SpatVector-method |
variable and long variable names | longnames 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 objects | vect 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,SpatGraticule-method vect,Spatial-method vect,SpatVector-method vect,SpatVectorCollection-method vect,XY-method |
List or remove layers from a vector file | vector_layers |
Compute a viewshed | viewshed viewshed,SpatRaster-method |
Voronoi diagram and Delaunay triangles | delaunay delaunay,SpatVector-method voronoi voronoi,SpatVector-method |
Virtual Raster Dataset | vrt vrt,character-method |
filenames of VRT tiles | vrt_tiles |
Catchment delineation | watershed watershed,SpatRaster-method |
Weighted mean of layers | weighted.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 properties | clearance clearance,SpatVector-method width width,SpatVector-method |
Set a window | window window,SpatRaster-method window<- window<-,SpatRaster-method |
wrap and unwrap | unwrap unwrap,ANY-method unwrap,PackedSpatExtent-method unwrap,PackedSpatRaster-method unwrap,PackedSpatRasterDC-method unwrap,PackedSpatVector-method wrap wrap,SpatExtent-method wrap,SpatRaster-method wrap,SpatRasterCollection-method wrap,SpatRasterDataset-method wrap,SpatVector-method |
SpatRaster wrap with caching options | wrapCache wrapCache,SpatRaster-method |
Write raster data to a NetCDF file | writeCDF writeCDF,SpatRaster-method writeCDF,SpatRasterDataset-method |
Write raster data to a file | writeRaster writeRaster,SpatRaster,character-method |
Write SpatVector data to a file | writeVector writeVector,SpatVector,character-method |
Apply a function to the cells of a two SpatRasters | xapp xapp,SpatRaster,SpatRaster-method |
Get or set single values of an extent | xmax 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 versa | cellFromRowCol 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 statistics | zonal zonal,SpatRaster,SpatRaster-method zonal,SpatRaster,SpatVector-method zonal,SpatVector,SpatVector-method |
Zoom in on a map | zoom zoom,SpatRaster-method zoom,SpatVector-method |