Package: raster 3.6-28

Robert J. Hijmans

raster: Geographic Data Analysis and Modeling

Reading, writing, manipulating, analyzing and modeling of spatial data. This package has been superseded by the "terra" package <https://CRAN.R-project.org/package=terra>.

Authors:Robert J. Hijmans [cre, aut], Jacob van Etten [ctb], Michael Sumner [ctb], Joe Cheng [ctb], Dan Baston [ctb], Andrew Bevan [ctb], Roger Bivand [ctb], Lorenzo Busetto [ctb], Mort Canty [ctb], Ben Fasoli [ctb], David Forrest [ctb], Aniruddha Ghosh [ctb], Duncan Golicher [ctb], Josh Gray [ctb], Jonathan A. Greenberg [ctb], Paul Hiemstra [ctb], Kassel Hingee [ctb], Alex Ilich [ctb], Institute for Mathematics Applied Geosciences [cph], Charles Karney [ctb], Matteo Mattiuzzi [ctb], Steven Mosher [ctb], Babak Naimi [ctb], Jakub Nowosad [ctb], Edzer Pebesma [ctb], Oscar Perpinan Lamigueiro [ctb], Etienne B. Racine [ctb], Barry Rowlingson [ctb], Ashton Shortridge [ctb], Bill Venables [ctb], Rafael Wueest [ctb]

raster_3.6-28.tar.gz
raster_3.6-28.zip(r-4.5)raster_3.6-28.zip(r-4.4)raster_3.6-28.zip(r-4.3)
raster_3.6-28.tgz(r-4.4-x86_64)raster_3.6-28.tgz(r-4.4-arm64)raster_3.6-28.tgz(r-4.3-x86_64)raster_3.6-28.tgz(r-4.3-arm64)
raster_3.6-28.tar.gz(r-4.5-noble)raster_3.6-28.tar.gz(r-4.4-noble)
raster_3.6-28.tgz(r-4.4-emscripten)raster_3.6-28.tgz(r-4.3-emscripten)
raster.pdf |raster.html
raster/json (API)
NEWS

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

Peer review:

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

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

281 exports 161 stars 11.13 score 4 dependencies 522 dependents 561 mentions 56.3k scripts 103.3k downloads

Last updated 2 months agofrom:285d44400d. Checks:OK: 7 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 07 2024
R-4.5-win-x86_64NOTESep 07 2024
R-4.5-linux-x86_64NOTESep 07 2024
R-4.4-win-x86_64OKSep 07 2024
R-4.4-mac-x86_64OKSep 07 2024
R-4.4-mac-aarch64OKSep 07 2024
R-4.3-win-x86_64OKSep 07 2024
R-4.3-mac-x86_64OKSep 07 2024
R-4.3-mac-aarch64OKSep 07 2024

Exports:%in%addLayeradjacentaggregatealignExtentall.equalanimateapproxNAareaArithas.arrayas.data.frameas.factoras.listas.matrixas.rasterasFactoratan2bandnrbarplotbboxbeginClusterbindblockSizeboundariesboxplotbrickbuffercalccanProcessInMemoryccodescellFromColcellFromLinecellFromPolygoncellFromRowcellFromRowColcellFromRowColCombinecellFromXYcellsFromExtentcellStatsclampclearValuesclickclumpclusterRcolFromCellcolFromXcolortablecolortable<-colSumsComparecompareCRScompareRastercontourcoordinatescorLocalcouldBeLonLatcovercropcrosstabcrscrs<-cutcvdataSigneddataSizedataTypedataType<-densityderatifydirectiondisaggregatedistancedistanceFromPointsdrawExtentdrawLinedrawPolydropLayerendClustereraseextendextensionextension<-extentextent<-extentFromCellsextractfactorValuesfilenamefilledContourflipflowPathfocalfocalWeightfourCellsFromXYfreqfromDiskgaingain<-GearyGearyLocalgeomgetClustergetDatagetValuesgetValuesBlockgetValuesFocalgetZgridDistancehasValueshdrheadhillShadehistimageinitinMemoryinterpolateintersectis.factorisLonLatKMLlabelslayerizelayerStatslevelslineslocalFunLogicmaskmatchMathMath2maxValuemeanmergemetadatametadata<-minValuemodalMoranMoranLocalmosaicmovingFunNAvalueNAvalue<-nbandsncellncolncol<-nlayersnrownrow<-offsoffs<-originorigin<-overlaypairspbClosepbCreatepbStepperspplotplotRGBpointDistancepredictprintproj4stringprojectExtentprojectionprojection<-projectRasterquantilerasterrasterFromCellsrasterFromXYZrasterizerasterOptionsrasterTmpFilerasterToContourrasterToPointsrasterToPolygonsratifyreadAllreadIniFilereadStartreadStopreclassifyrectifyremoveTmpFilesresres<-resamplereturnClusterRGBrotaterotatedrowColFromCellrowFromCellrowFromYrowSumssampleIntsampleRandomsampleRegularsampleStratifiedscalescalebarselectsetExtentsetMinMaxsetValuessetZshapefileshiftshowTmpFilesslopeAspectSpExtentspLinesspplotSpPolyspPolygonsSpPolygonsSpPolyPartstackstackApplystackOpenstackSavestackSelectstretchsubssubsetsummarySummarysymdifttailterraintexttmpDirtrimunionuniqueunstackupdatevalidCellvalidColvalidNamesvalidRowvaluesvalues<-weighted.meanWhichwhich.maxwhich.minwhiches.maxwhiches.minwktwriteFormatswriteRasterwriteStartwriteStopwriteValuesxFromCellxFromColxmaxxmax<-xminxmin<-xresxyFromCellyFromCellyFromRowymaxymax<-yminymin<-yreszApplyzonalzoom

Dependencies:latticeRcppspterra

Readme and manuals

Help Manual

Help pageTopics
Overview of the functions in the raster packageraster-package
Add or drop a layeraddLayer addLayer,Raster-method dropLayer dropLayer,RasterBrick-method dropLayer,RasterStack-method
Adjacent cellsadjacent adjacent,BasicRaster-method
Aggregate raster cells or SpatialPolygons/Linesaggregate aggregate,Raster-method aggregate,SpatialLines-method aggregate,SpatialPolygons-method
Align an extent (object of class Extent)alignExtent
Animate layers of a Raster* objectanimate animate,RasterStackBrick-method
Estimate values for cell values that are 'NA' by interpolating between layersapproxNA approxNA,RasterStackBrick-method
Size of cellsarea area,RasterLayer-method area,RasterStackBrick-method area,SpatialPolygons-method
Arithmetic with Raster* objects*,SpatialPolygons,SpatialPolygons-method +,SpatialLines,SpatialLines-method +,SpatialPoints,SpatialPoints-method +,SpatialPolygons,SpatialPolygons-method -,SpatialPolygons,SpatialPolygons-method Arith,Extent,numeric-method Arith,logical,RasterLayer-method Arith,logical,RasterStackBrick-method Arith,numeric,Extent-method Arith,numeric,RasterLayer-method Arith,numeric,RasterLayerSparse-method Arith,numeric,RasterStackBrick-method Arith,Raster,missing-method Arith,Raster,Raster-method Arith,RasterLayer,logical-method Arith,RasterLayer,numeric-method Arith,RasterLayerSparse,numeric-method Arith,RasterStackBrick,logical-method Arith,RasterStackBrick,numeric-method Arith-methods
Character representation of a Raster or Extent objectas.character as.character,Extent-method as.character,Raster-method
Get a data.frame with raster cell values, or coerce SpatialPolygons, Lines, or Points to a data.frameas.data.frame as.data.frame,Raster-method as.data.frame,SpatialLines-method as.data.frame,SpatialPolygons-method
Create a list of RasterLayer objectsas.list,Raster-method
Change cell values to logical or integer valuesas.integer,Raster-method as.logical,Raster-method
Get a vector, matrix, or array with raster cell valuesas.array as.array,RasterLayer-method as.array,RasterStackBrick-method as.matrix as.matrix,Extent-method as.matrix,RasterLayer-method as.matrix,RasterStackBrick-method as.vector as.vector,Extent-method as.vector,Raster-method
Coerce to a 'raster' objectas.raster as.raster,RasterLayer-method
Two argument arc-tangentatan2 atan2,Raster,Raster-method
Spatial autocorrelationGeary GearyLocal Moran MoranLocal
Number of bandsbandnr bandnr,RasterLayer-method nbands
Bar plot of a RasterLayerbarplot barplot,RasterLayer-method
Bind Spatial* objectsbind bind,data.frame,data.frame-method bind,data.frame,missing-method bind,list,missing-method bind,matrix,matrix-method bind,matrix,missing-method bind,SpatialLines,SpatialLines-method bind,SpatialPoints,SpatialPoints-method bind,SpatialPolygons,SpatialPolygons-method
Block size for writing filesblockSize blockSize,Raster-method
boundaries (edges) detectionboundaries boundaries,RasterLayer-method
Box plot of Raster objectsboxplot boxplot,RasterLayer-method boxplot,RasterStackBrick-method
Create a RasterBrick objectbrick brick,array-method brick,character-method brick,Extent-method brick,grf-method brick,kasc-method brick,list-method brick,missing-method brick,RasterBrick-method brick,RasterLayer-method brick,RasterStack-method brick,SpatialGrid-method brick,SpatialPixels-method brick,SpatRaster-method
bufferbuffer buffer,RasterLayer-method buffer,Spatial-method
Calculatecalc calc,Raster,function-method
Get cell, row, or column numbercellFromCol cellFromLine cellFromPolygon cellFromRow cellFromRowCol cellFromRowCol,BasicRaster,numeric,numeric-method cellFromRowColCombine cellFromRowColCombine,BasicRaster,numeric,numeric-method cellFromXY cellFromXY,BasicRaster,ANY-method colFromX colFromX,BasicRaster,numeric-method fourCellsFromXY rowFromY rowFromY,BasicRaster,numeric-method
Cells from extent, and vice versacellsFromExtent extentFromCells
Statistics across cellscellStats cellStats,RasterLayer-method cellStats,RasterStackBrick-method
Clamp valuesclamp clamp,numeric-method clamp,Raster-method
Clear valuesclearValues
Query by clicking on a mapclick click,missing-method click,Raster-method click,SpatialGrid-method click,SpatialLines-method click,SpatialPixels-method click,SpatialPoints-method click,SpatialPolygons-method
Detect clumpsclump clump,RasterLayer-method
Use a multi-core clusterbeginCluster clusterR endCluster
colortablecolortable colortable<-
Compare Raster* objects!=,BasicRaster,BasicRaster-method ==,BasicRaster,BasicRaster-method Compare,Extent,Extent-method Compare,logical,Raster-method Compare,numeric,Raster-method Compare,Raster,logical-method Compare,Raster,numeric-method Compare,Raster,Raster-method Compare-methods
Partially compare two CRS objectscompareCRS
Compare Raster objectsall.equal,Raster,Raster-method compareRaster
Contour plotcontour contour,RasterLayer-method
Local correlation coefficientcorLocal corLocal,RasterLayer,RasterLayer-method corLocal,RasterStackBrick,RasterStackBrick-method
Replace NA values with values of other layerscover cover,RasterLayer,RasterLayer-method cover,RasterStackBrick,Raster-method cover,SpatialPolygons,SpatialPolygons-method
Cropcrop crop,Raster,ANY-method crop,Raster-method crop,Spatial,ANY-method crop,Spatial-method
Cross-tabulatecrosstab crosstab,Raster,Raster-method crosstab,RasterStackBrick,missing-method
Convert values to classescut cut,Raster-method
Coefficient of variationcv cv,ANY-method cv,Raster-method
Are values in memory and/or on disk?fromDisk hasValues hasValues,BasicRaster-method inMemory inMemory,BasicRaster-method
Data typedataType dataType<-
Density plotdensity density,Raster-method
Dimensions of a Raster* objectdim dim,BasicRaster-method dim,RasterStackBrick-method dim<-,BasicRaster-method dim<-,RasterBrick-method dim<-,RasterLayer-method
Directiondirection direction,RasterLayer-method
Disaggregatedisaggregate disaggregate,Raster-method
Distancedistance distance,RasterLayer,missing-method distance,RasterLayer,RasterLayer-method distance,Spatial,Spatial-method
Distance from pointsdistanceFromPoints
Draw a line or polygondrawLine drawPoly
Create an Extent object by drawing on a mapdrawExtent
Erase parts of a SpatialPolygons* or SpatialLines* object. The inverse of this can be done with 'intersect'erase erase,SpatialLines,SpatialPolygons-method erase,SpatialPolygons,SpatialPolygons-method
Extendextend extend,Extent-method extend,Raster-method
Filename extensionsextension extension<-
Extentbbox,Extent-method bbox,Raster-method extent extent,BasicRaster-method extent,bbox-method extent,Extent-method extent,GridTopology-method extent,list-method extent,matrix-method extent,numeric-method extent,sf-method extent,Spatial-method
round Extent coordinatesceiling,Extent-method floor,Extent-method
Class "Extent"Extent Extent-class show,Extent-method
Extract values from Raster objectsextract extract,Raster,data.frame-method extract,Raster,Extent-method extract,Raster,matrix-method extract,Raster,sf-method extract,Raster,SpatialLines-method extract,Raster,SpatialPoints-method extract,Raster,SpatialPolygons-method extract,Raster,vector-method extract,SpatialPolygons,data.frame-method extract,SpatialPolygons,matrix-method extract,SpatialPolygons,SpatialPoints-method
Indexing to extract values of a Raster* object[,Extent,missing,missing-method [,Extent,numeric,missing-method [,Raster,Extent,missing-method [,Raster,logical,missing-method [,Raster,matrix,missing-method [,Raster,missing,missing-method [,Raster,missing,numeric-method [,Raster,numeric,missing-method [,Raster,numeric,numeric-method [,Raster,RasterLayer,missing-method [,Raster,Spatial,missing-method [[,Raster,ANY,ANY-method
Coordinates of the Extent of a Raster objectxmax xmax,BasicRaster-method xmax,Extent-method xmax,Spatial-method xmax<- xmax<-,BasicRaster,numeric-method xmax<-,Extent,numeric-method xmin xmin,BasicRaster-method xmin,Extent-method xmin,Spatial-method xmin<- xmin<-,BasicRaster,numeric-method xmin<-,Extent,numeric-method ymax ymax,BasicRaster-method ymax,Extent-method ymax,Spatial-method ymax<- ymax<-,BasicRaster,numeric-method ymax<-,Extent,numeric-method ymin ymin,BasicRaster-method ymin,Extent-method ymin,Spatial-method ymin<- ymin<-,BasicRaster,numeric-method ymin<-,Extent,numeric-method
Minimum and maximum valuesmaxValue maxValue,RasterBrick-method maxValue,RasterLayer-method maxValue,RasterStack-method minValue minValue,RasterBrick-method minValue,RasterLayer-method minValue,RasterStack-method
Factorsas.factor as.factor,RasterLayer-method asFactor asFactor,RasterLayer-method deratify factorValues is.factor is.factor,Raster-method is.factor,RasterStack-method levels levels,Raster-method levels,RasterStack-method levels<- levels<-,Raster-method ratify ratify,Raster-method
Filenamefilename
Filled contour plotfilledContour
Flipflip flip,RasterLayer-method flip,RasterStackBrick-method
Flow pathflowPath
Focal valuesfocal focal,RasterLayer-method
Focal weights matrixfocalWeight
Frequency tablefreq freq,RasterLayer-method freq,RasterStackBrick-method
Gain and offset of values on filegain gain<- offs offs<-
Get the coordinates of a vector type Spatial* objectgeom geom,data.frame-method geom,SpatialLines-method geom,SpatialPoints-method geom,SpatialPolygons-method
Get geographic dataccodes getData
Get raster cell valuesgetValues getValues,RasterBrick,missing,missing-method getValues,RasterBrick,numeric,missing-method getValues,RasterBrick,numeric,numeric-method getValues,RasterLayer,missing,missing-method getValues,RasterLayer,numeric,missing-method getValues,RasterLayer,numeric,numeric-method getValues,RasterLayerSparse,missing,missing-method getValues,RasterLayerSparse,numeric,missing-method getValues,RasterLayerSparse,numeric,numeric-method getValues,RasterStack,missing,missing-method getValues,RasterStack,numeric,missing-method getValues,RasterStack,numeric,numeric-method values values,Raster-method
Get a block of raster cell valuesgetValuesBlock getValuesBlock,RasterBrick-method getValuesBlock,RasterLayer-method getValuesBlock,RasterLayerSparse-method getValuesBlock,RasterStack-method
Get focal raster cell valuesgetValuesFocal getValuesFocal,Raster,missing,missing,numeric-method getValuesFocal,Raster,numeric,numeric,numeric-method getValuesFocal,Raster-method
Distance on a gridgridDistance gridDistance,RasterLayer-method
Header fileshdr
Show the head or tail of a Raster* objecthead head,RasterLayer-method head,RasterStackBrick-method head,Spatial-method tail tail,RasterLayer-method tail,RasterStackBrick-method tail,Spatial-method
Hill shadinghillShade
Histogramhist hist,Raster-method
Imageimage image,RasterLayer-method image,RasterStackBrick-method
Read a .ini filereadIniFile
Initialize a Raster object with valuesinit init,Raster-method
Interpolateinterpolate interpolate,Raster-method
Intersectintersect intersect,Extent,ANY-method intersect,Raster,ANY-method intersect,SpatialLines,SpatialLines-method intersect,SpatialLines,SpatialPolygons-method intersect,SpatialPoints,ANY-method intersect,SpatialPolygons,ANY-method intersect,SpatialPolygons,SpatialLines-method intersect,SpatialPolygons,SpatialPoints-method intersect,SpatialPolygons,SpatialPolygons-method
Is this longitude/latitude data?couldBeLonLat couldBeLonLat,ANY-method couldBeLonLat,BasicRaster-method couldBeLonLat,Spatial-method isLonLat isLonLat,ANY-method isLonLat,BasicRaster-method isLonLat,character-method isLonLat,CRS-method isLonLat,Spatial-method
Write a KML or KMZ fileKML KML,RasterLayer-method KML,RasterStackBrick-method KML,Spatial-method
Layerizelayerize layerize,RasterLayer,missing-method layerize,RasterLayer,RasterLayer-method
Correlation and (weighted) covariancelayerStats
Local functionslocalFun localFun,RasterLayer,RasterLayer-method
Logical operators and functions!,Raster-method is.finite,Raster-method is.infinite,Raster-method is.na,Raster-method is.nan,Raster-method Logic,Raster,Raster-method Logic-methods
Mask values in a Raster objectmask mask,Raster,sf-method mask,Raster,Spatial-method mask,RasterLayer,RasterLayer-method mask,RasterLayer,RasterStackBrick-method mask,RasterStackBrick,RasterLayer-method mask,RasterStackBrick,RasterStackBrick-method
Value matching for Raster* objects%in% %in%,Raster-method match match,Raster-method
Mathematical functionslog,Raster-method Math,Raster-method Math,RasterLayerSparse-method Math-methods Math2,Extent-method Math2,Raster-method
Merge Raster* objectsmerge merge,Extent,ANY-method merge,Raster,Raster-method merge,RasterStackBrick,missing-method
Metadatametadata metadata,Raster-method metadata<-
modal valuemodal modal,ANY-method modal,Raster-method
Merge Raster* objects using a function for overlapping areasmosaic mosaic,Raster,Raster-method
Moving functionsmovingFun
Names of raster layerslabels,Raster-method names names,Raster-method names,RasterStack-method names<- names<-,Raster-method
Set the NA value of a RasterLayerNAvalue NAvalue<-
Number or rows, columns, and cells of a Raster* objectlength,BasicRaster-method ncell ncell,ANY-method ncell,BasicRaster-method ncol ncol,BasicRaster-method ncol<- ncol<-,BasicRaster,numeric-method nrow nrow,BasicRaster-method nrow<- nrow<-,BasicRaster,numeric-method
Number of layersnlayers nlayers,BasicRaster-method nlayers,Raster-method nlayers,RasterBrick-method nlayers,RasterStack-method nlayers,Spatial-method
Global options for the raster packagerasterOptions tmpDir
Originorigin origin,BasicRaster-method origin<- origin<-,BasicRaster-method
Overlay Raster objectsoverlay overlay,Raster,missing-method overlay,Raster,Raster-method
Pairs plot (matrix of scatterplots)pairs pairs,RasterStackBrick-method
Perspective plotpersp persp,RasterLayer-method persp,RasterStackBrick-method
Plot a Raster* objectlines,Extent-method lines,RasterLayer-method plot plot,Extent,missing-method plot,Raster,ANY-method plot,Raster,Raster-method
Red-Green-Blue plot of a multi-layered Raster objectplotRGB plotRGB,RasterStackBrick-method
Distance between pointspointDistance
Spatial model predictionspredict predict,Raster-method
Helper functions for programmingcanProcessInMemory getCluster pbClose pbCreate pbStep readStart readStart,Raster-method readStart,RasterStack-method readStop readStop,Raster-method readStop,RasterStack-method returnCluster
Get or set a coordinate reference system (projection)as.character,CRS-method crs crs,ANY-method crs<- crs<-,BasicRaster-method crs<-,Spatial-method is.na,CRS-method proj4string proj4string,BasicRaster-method proj4string,CRS-method proj4string<- projection projection<- wkt wkt,ANY-method wkt,Raster-method
Project a Raster objectprojectExtent projectRaster
Raster file propertiesdataSigned dataSize
Raster quantilesquantile quantile,Raster-method
Create a RasterLayer objectraster raster,asc-method raster,BasicRaster-method raster,character-method raster,Extent-method raster,grf-method raster,GridTopology-method raster,im-method raster,kasc-method raster,kde-method raster,list-method raster,matrix-method raster,missing-method raster,RasterBrick-method raster,RasterLayer-method raster,RasterLayerSparse-method raster,RasterStack-method raster,sf-method raster,Spatial-method raster,SpatialGrid-method raster,SpatialPixels-method raster,SpatRaster-method
Raster* classesBasicRaster-class print,Raster-method print,Spatial-method Raster-class RasterBrick-class RasterLayer-class RasterLayerSparse-class RasterStack-class RasterStackBrick-class show,BasicRaster-method show,RasterBrick-method show,RasterLayer-method show,RasterStack-method SpatialVector-class VectorLayer-class
Subset a raster by cell numbersrasterFromCells
Create a Raster* object from x, y, z valuesrasterFromXYZ
Rasterize points, lines, or polygonsrasterize rasterize,data.frame,Raster-method rasterize,Extent,Raster-method rasterize,matrix,Raster-method rasterize,sf,Raster-method rasterize,SpatialLines,Raster-method rasterize,SpatialPoints,Raster-method rasterize,SpatialPolygons,Raster-method
Temporary filesrasterTmpFile removeTmpFiles showTmpFiles
Raster to contour lines conversionrasterToContour
Raster to points conversionrasterToPoints
Raster to polygons conversionrasterToPolygons
Rcpp classesRcpp_SpExtent-class Rcpp_SpPoly-class Rcpp_SpPolygons-class Rcpp_SpPolyPart-class SpExtent SpPoly SpPoly-class SpPolygons SpPolygons-class SpPolyPart SpPolyPart-class
Read values from diskreadAll readAll,RasterBrick-method readAll,RasterLayer-method readAll,RasterStack-method
Reclassifyreclassify reclassify,Raster-method
rectify a Raster objectrectify rectify,Raster-method
Replace cell values or layers of a Raster* object$,Raster-method $<-,Raster-method [<-,Extent,numeric,missing-method [<-,Raster,Extent,missing-method [<-,Raster,logical,missing-method [<-,Raster,matrix,missing-method [<-,Raster,missing,numeric-method [<-,Raster,numeric,missing-method [<-,Raster,numeric,numeric-method [<-,Raster,Spatial,missing-method [<-,RasterLayer,missing,missing-method [<-,RasterLayer,RasterLayer,missing-method [<-,RasterStackBrick,missing,missing-method [<-,RasterStackBrick,Raster,missing-method [[<-,Raster,numeric,missing-method [[<-,RasterLayer,character,missing-method [[<-,RasterStack,numeric,missing-method [[<-,RasterStackBrick,character,missing-method
Resample a Raster objectresample resample,Raster,Raster-method
Resolutionres res,BasicRaster-method res<- res<-,BasicRaster-method xres xres,BasicRaster-method yres yres,BasicRaster-method
Create a Red-Green-Blue Raster objectRGB RGB,RasterLayer-method
Rotaterotate rotate,Raster-method
Do the raster cells have a rotation?rotated
Integer valuesceiling,RasterLayer-method floor,RasterLayer-method round,RasterLayer-method trunc,RasterLayer-method
Row or column number from a cell numbercolFromCell colFromCell,BasicRaster,numeric-method rowColFromCell rowColFromCell,BasicRaster,numeric-method rowFromCell rowFromCell,BasicRaster,numeric-method
rowSums and colSums for Raster objectscolSums colSums,Raster-method rowSums rowSums,Raster-method
Sample integer valuessampleInt
Random samplesampleRandom sampleRandom,Raster-method
Regular samplesampleRegular sampleRegular,Raster-method
Stratified random samplesampleStratified sampleStratified,RasterLayer-method
Scale valuesscale scale,Raster-method
scalebarscalebar
Geometric subsettingselect select,Raster-method select,Spatial-method
Set the extent of a RasterLayerextent<- setExtent
Compute min and max valuessetMinMax setMinMax,RasterBrick-method setMinMax,RasterLayer-method setMinMax,RasterStack-method
Set values of a Raster objectsetValues setValues,RasterBrick-method setValues,RasterLayer-method setValues,RasterLayerSparse-method setValues,RasterStack-method values<- values<-,RasterBrick,ANY-method values<-,RasterLayer,ANY-method values<-,RasterLayerSparse,ANY-method values<-,RasterStack,ANY-method
Read or write a shapefileshapefile shapefile,character-method shapefile,Spatial-method
Shiftshift shift,Raster-method shift,SpatialLines-method shift,SpatialPoints-method shift,SpatialPolygons-method
Slope and aspectslopeAspect
Create SpatialLines* or SpatialPolygons*spLines spPolygons
Use spplot to plot a Raster* or other objectlines,SpatialPolygons-method spplot spplot,Raster-method spplot,SpatialLines-method spplot,SpatialPoints-method spplot,SpatialPolygons-method spplot,SpatRaster-method spplot,SpatVector-method
Create a RasterStack objectstack stack,character-method stack,kasc-method stack,list-method stack,missing-method stack,Raster-method stack,SpatialGridDataFrame-method stack,SpatialPixelsDataFrame-method stack,SpatRaster-method
Apply a function on subsets of a RasterStack or RasterBrickstackApply
Save or open a RasterStack filestackOpen stackSave
Select cell values from a multi-layer Raster* objectstackSelect stackSelect,RasterStackBrick,Raster-method
Stretchstretch stretch,Raster-method
Subset layers in a Raster* objectsubset subset,Raster-method subset,RasterStack-method
Substitute values in a Raster* objectsubs subs,Raster,data.frame-method
Summarysummary,RasterLayer-method summary,RasterStackBrick-method
Summary methodsmean,Raster-method median,Raster-method Summary,Raster-method Summary-methods
Symetrical differencesymdif symdif,SpatialPolygons,SpatialPolygons-method
Terrain characteristicsterrain terrain,RasterLayer-method
Add labels to a maptext text,RasterLayer-method text,RasterStackBrick-method text,SpatialPoints-method text,SpatialPolygons-method
Transposet t,RasterLayer-method t,RasterStackBrick-method
Trimtrim trim,character-method trim,data.frame-method trim,matrix-method trim,Raster-method
Union Extent or SpatialPolygons* objectsunion union,Extent,Extent-method union,SpatialLines,SpatialLines-method union,SpatialPoints,SpatialPoints-method union,SpatialPolygons,missing-method union,SpatialPolygons,SpatialPolygons-method
Unique valuesunique unique,RasterLayer,missing-method unique,RasterStackBrick,missing-method
Unstackunstack unstack,RasterBrick-method unstack,RasterStack-method
Update raster cells of files (on disk)update update,RasterBrick-method update,RasterLayer-method
Validity of a cell, column or row numbervalidCell validCol validRow
Create valid namesvalidNames
Weighted mean of rastersweighted.mean weighted.mean,RasterStackBrick,RasterStackBrick-method weighted.mean,RasterStackBrick,vector-method
Which cells are TRUE?Which Which,RasterLayer-method
Where is the min or max value?which.max which.max,RasterLayer-method which.max,RasterStackBrick-method which.min which.min,RasterLayer-method which.min,RasterStackBrick-method whiches.max whiches.max,RasterStackBrick-method whiches.min whiches.min,RasterStackBrick-method
File types for writingwriteFormats
Write raster data to a filewriteRaster writeRaster,RasterLayer,character-method writeRaster,RasterStackBrick,character-method
Write values to a filewriteStart writeStart,RasterBrick,character-method writeStart,RasterLayer,character-method writeStop writeStop,RasterBrick-method writeStop,RasterLayer-method writeValues writeValues,RasterBrick,matrix-method writeValues,RasterLayer,vector-method
Coordinates from a row, column or cell numbercoordinates coordinates,Extent-method coordinates,Raster-method xFromCell xFromCell,Raster,numeric-method xFromCol xFromCol,Raster,missing-method xFromCol,Raster,numeric-method xyFromCell xyFromCell,BasicRaster,ANY-method xyFromCell,BasicRaster-method xyFromCell,Raster-method yFromCell yFromCell,Raster,numeric-method yFromRow yFromRow,Raster,missing-method yFromRow,Raster,numeric-method
Get or set z-valuesgetZ setZ
z (time) applyzApply
Zonal statisticszonal zonal,RasterLayer,RasterLayer-method zonal,RasterStackBrick,RasterLayer-method
Zoom in on a mapzoom zoom,missing-method zoom,Raster-method zoom,Spatial-method