[ Extract values from a SpatRaster, SpatVector or SpatExtent [[ Subset a SpatRaster or a SpatVector [[<- Replace layers or variables [<- Replace values of a SpatRaster $ Subset a SpatRaster or a SpatVector $<- Replace with $<- activeCat Active category add<- Add (in place) a SpatRaster to another SpatRaster object adjacent Adjacent cells aggregate Aggregate raster or vector data align Align a SpatExtent all.equal Compare two SpatRasters for equality animate Animate a SpatRaster app Apply a function to the cells of a SpatRaster approximate Estimate values for cell values that are 'NA' by interpolating between layers Arith-methods Arithmetic as.character,SpatExtent-method Create a text representation of (the skeleton of) an object as.data.frame SpatRaster or SpatVector to data.frame as.list SpatRaster* or SpatVector to list as.polygons Conversion to a SpatVector, or to another SpatVector type as.raster Coerce to a "raster" object as.vector Coercion of a SpatRaster to a vector, matrix or array atan2 Two argument arc-tangent autocor Spatial autocorrelation barplot Bar plot of a SpatRaster boundaries Detect boundaries (edges) boxplot Box plot of SpatRaster data buffer Create a buffer around vector geometries or raster patches c Combine SpatRaster or SpatVector objects cartogram Cartogram catalyze Factors to numeric cells Get cell numbers cellSize Area covered by each raster cell centroids Centroids clamp Clamp values clamp_ts clamp time series data classify Classify (or reclassify) cell values click Query by clicking on a map combineGeoms Combine geometries Compare-methods Compare and logical methods compareGeom Compare geometries of SpatRasters concats Concatenate categorical rasters contour Contour plot convHull Convex hull and minimal rotated rectangle costDist Cost distance cover Replace values with values from another object crds Get the coordinates of SpatVector geometries or SpatRaster cells crop Cut out a geographic subset crosstab Cross-tabulate crs Get or set a coordinate reference system deepcopy Deep copy densify Add additional nodes to lines or polygons density Density plot depth depth of SpatRaster layers describe describe diff Lagged differences direction Direction disagg Disaggregate raster cells or vector geometries distance Geographic distance dots Make a dot-density map draw Draw a polygon, line, extent, or points droplevels Categorical rasters elongate elongate lines erase Erase parts of a SpatVector object expanse Get the expanse (area) of individual polygons or for all (summed) raster cells ext Create, get or set a SpatExtent extend Extend extract Extract values from a SpatRaster fillHoles Remove holes from polygons fillTime Fill time gaps in a SpatRaster flip Flip or reverse a raster focal Focal values focal3D Three-dimensional focal values focalCpp Compute focal values with an iterating C++ function focalMat Focal weights matrix focalPairs Focal function across two layers focalReg Focal regression focalValues Get focal values freq Frequency table gaps Find gaps between polygons gdal GDAL version, supported file formats, and cache size geom Get the geometry (coordinates) of a SpatVector geomtype Geometry type of a SpatVector global global statistics graticule Create a graticule gridDistance Distance on a grid has.colors Color table head head and tail of a SpatRaster or SpatVector hist Histogram ifel ifelse for SpatRasters image SpatRaster image method impose Impose the geometry of a SpatRaster to those in a SpatRasterCollection. init Initialize a SpatRaster with values inset Make an inset map interpIDW Interpolate points using a moving window interpNear Nearest neighbor interpolation interpolate Spatial interpolation intersect Intersection is.bool Raster value types is.lonlat Check for longitude/latitude crs is.valid Check or fix polygon or extent validity lapp Apply a function to layers of a SpatRaster, or sub-datasets of a SpatRasterDataset layerCor Correlation and (weighted) covariance linearUnits Linear units of the coordinate reference system lines Add SpatVector data to a map makeTiles Make tiles makeVRT Make a VRT header file map.pal map.pal arrow mask Mask values in a SpatRaster or SpatVector match Value matching for SpatRasters Math-methods General mathematical methods mem_info Memory available and needed merge Merge SpatRasters, or merge a SpatVector with a data.frame mergeTime merge SpatRasters by timelines to create a single timeseries minmax Get or compute the minimum and maximum cell values modal modal value mosaic mosaic SpatRasters na.omit na.omit for SpatVector NAflag Set the NA flag names Names of Spat* objects nearest nearby geometries normalize.longitude normalize vector data that crosses the dateline north North arrow not.na is not NA origin Origin pairs Pairs plot (matrix of scatterplots) patches Detect patches (clumps) of cells perim Perimeter or length persp Perspective plot plet Plot with leaflet plot Make a map plot,SpatExtent,missing-method Plot a SpatExtent plot,SpatGraticule,missing-method Plot a graticule plot,SpatRaster,SpatRaster-method Scatterplot of two SpatRaster layers plotRGB Red-Green-Blue plot of a multi-layered SpatRaster predict Spatial model predictions project Change the coordinate reference system quantile Quantiles of spatial data query Query a SpatVectorProxy object rangeFill Fill layers with a range rapp Range-apply rast Create a SpatRaster rasterize Rasterize vector data rasterizeGeom Rasterize geometric properties of vector data rasterizeWin Rasterize points with a moving window rcl Combine row, column, and layer numbers readStart Read from, or write to, file rectify Rectify a SpatRaster relate Spatial relationships between geometries rep Replicate layers resample Transfer values of a SpatRaster to another one with a different geometry rescale rescale RGB Layers representing colors roll Rolling (moving) functions rotate Rotate data along longitude sapp Apply a terra function that takes only a single layer and returns a SpatRaster to all layers of a SpatRaster sbar scale bar scale Scale values scoff Scale (gain) and offset sds Create a SpatRasterDataset segregate segregate sel Spatial selection selectHighest select cells with high or low values selectRange Select the values of a range of layers, as specified by cell values in another SpatRaster serialize serialize and saveRDS for SpatRaster and SpatVector set.ext Change values in-place setCats deprecated methods setValues Set the values of raster cells or of geometry attributes shade Hill shading sharedPaths Shared paths shift Shift sieve Sieve filter simplifyGeom simplifyGeom geometries size Dimensions of a SpatRaster or SpatVector and related objects sort Sort a SpatRaster sources Data sources of a SpatRaster SpatExtent-class Class "SpatExtent" SpatRaster-class SpatRaster class spatSample Take a regular sample SpatVector-class Class "SpatVector" spin spin a SpatVector split Split sprc Create a SpatRasterCollection stretch Stretch subset Subset a SpatRaster or a SpatVector subst replace cell values summary summary Summary-methods Summarize svc Create a SpatVectorCollection symdif Symmetrical difference t Transpose tapp Apply a function to subsets of layers of a SpatRaster terra-package Description of the methods in the terra package terrain terrain characteristics terraOptions Options text Add labels to a map tighten tighten SpatRaster or SpatRasterDataset objects time time of SpatRaster layers tmpFiles Temporary files topology Vector topology methods trim Trim a SpatRaster union Union SpatVector or SpatExtent objects unique Unique values units units of SpatRaster or SpatRasterDataSet update Change values in a file values Cell values and geometry attributes vect Create SpatVector objects vector_layers List or remove layers from a vector file viewshed Compute a viewshed voronoi Voronoi diagram and Delaunay triangles vrt Virtual Raster Dataset weighted.mean Weighted mean of layers where.min Where are the cells with the min or max values? which.lyr Which cells are TRUE? width SpatVector geometric properties window Set a window wrap wrap and unwrap writeCDF Write raster data to a NetCDF file writeRaster Write raster data to a file writeVector Write SpatVector data to a file xFromCol Coordinates from a row, column or cell number and vice versa xmin Get or set single values of an extent zonal Zonal statistics zoom Zoom in on a map