Package: raster 3.6-30
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:
raster_3.6-30.tar.gz
raster_3.6-30.zip(r-4.5)raster_3.6-30.zip(r-4.4)raster_3.6-30.zip(r-4.3)
raster_3.6-30.tgz(r-4.4-x86_64)raster_3.6-30.tgz(r-4.4-arm64)raster_3.6-30.tgz(r-4.3-x86_64)raster_3.6-30.tgz(r-4.3-arm64)
raster_3.6-30.tar.gz(r-4.5-noble)raster_3.6-30.tar.gz(r-4.4-noble)
raster_3.6-30.tgz(r-4.4-emscripten)raster_3.6-30.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')) |
Bug tracker:https://github.com/rspatial/raster/issues
Last updated 2 months agofrom:7252900c08. Checks:OK: 9. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 01 2024 |
R-4.5-win-x86_64 | OK | Nov 01 2024 |
R-4.5-linux-x86_64 | OK | Nov 01 2024 |
R-4.4-win-x86_64 | OK | Nov 01 2024 |
R-4.4-mac-x86_64 | OK | Nov 01 2024 |
R-4.4-mac-aarch64 | OK | Nov 01 2024 |
R-4.3-win-x86_64 | OK | Nov 01 2024 |
R-4.3-mac-x86_64 | OK | Nov 01 2024 |
R-4.3-mac-aarch64 | OK | Nov 01 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
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Overview of the functions in the raster package | raster-package |
Add or drop a layer | addLayer addLayer,Raster-method dropLayer dropLayer,RasterBrick-method dropLayer,RasterStack-method |
Adjacent cells | adjacent adjacent,BasicRaster-method |
Aggregate raster cells or SpatialPolygons/Lines | aggregate aggregate,Raster-method aggregate,SpatialLines-method aggregate,SpatialPolygons-method |
Align an extent (object of class Extent) | alignExtent |
Animate layers of a Raster* object | animate animate,RasterStackBrick-method |
Estimate values for cell values that are 'NA' by interpolating between layers | approxNA approxNA,RasterStackBrick-method |
Size of cells | area 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 object | as.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.frame | as.data.frame as.data.frame,Raster-method as.data.frame,SpatialLines-method as.data.frame,SpatialPolygons-method |
Create a list of RasterLayer objects | as.list,Raster-method |
Change cell values to logical or integer values | as.integer,Raster-method as.logical,Raster-method |
Get a vector, matrix, or array with raster cell values | as.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' object | as.raster as.raster,RasterLayer-method |
Two argument arc-tangent | atan2 atan2,Raster,Raster-method |
Spatial autocorrelation | Geary GearyLocal Moran MoranLocal |
Number of bands | bandnr bandnr,RasterLayer-method nbands |
Bar plot of a RasterLayer | barplot barplot,RasterLayer-method |
Bind Spatial* objects | bind 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 files | blockSize blockSize,Raster-method |
boundaries (edges) detection | boundaries boundaries,RasterLayer-method |
Box plot of Raster objects | boxplot boxplot,RasterLayer-method boxplot,RasterStackBrick-method |
Create a RasterBrick object | brick 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 |
buffer | buffer buffer,RasterLayer-method buffer,Spatial-method |
Calculate | calc calc,Raster,function-method |
Get cell, row, or column number | cellFromCol 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 versa | cellsFromExtent extentFromCells |
Statistics across cells | cellStats cellStats,RasterLayer-method cellStats,RasterStackBrick-method |
Clamp values | clamp clamp,numeric-method clamp,Raster-method |
Clear values | clearValues |
Query by clicking on a map | click click,missing-method click,Raster-method click,SpatialGrid-method click,SpatialLines-method click,SpatialPixels-method click,SpatialPoints-method click,SpatialPolygons-method |
Detect clumps | clump clump,RasterLayer-method |
Use a multi-core cluster | beginCluster clusterR endCluster |
colortable | colortable 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 objects | compareCRS |
Compare Raster objects | all.equal,Raster,Raster-method compareRaster |
Contour plot | contour contour,RasterLayer-method |
Local correlation coefficient | corLocal corLocal,RasterLayer,RasterLayer-method corLocal,RasterStackBrick,RasterStackBrick-method |
Replace NA values with values of other layers | cover cover,RasterLayer,RasterLayer-method cover,RasterStackBrick,Raster-method cover,SpatialPolygons,SpatialPolygons-method |
Crop | crop crop,Raster,ANY-method crop,Raster-method crop,Spatial,ANY-method crop,Spatial-method |
Cross-tabulate | crosstab crosstab,Raster,Raster-method crosstab,RasterStackBrick,missing-method |
Convert values to classes | cut cut,Raster-method |
Coefficient of variation | cv cv,ANY-method cv,Raster-method |
Are values in memory and/or on disk? | fromDisk hasValues hasValues,BasicRaster-method inMemory inMemory,BasicRaster-method |
Data type | dataType dataType<- |
Density plot | density density,Raster-method |
Dimensions of a Raster* object | dim dim,BasicRaster-method dim,RasterStackBrick-method dim<-,BasicRaster-method dim<-,RasterBrick-method dim<-,RasterLayer-method |
Direction | direction direction,RasterLayer-method |
Disaggregate | disaggregate disaggregate,Raster-method |
Distance | distance distance,RasterLayer,missing-method distance,RasterLayer,RasterLayer-method distance,Spatial,Spatial-method |
Distance from points | distanceFromPoints |
Draw a line or polygon | drawLine drawPoly |
Create an Extent object by drawing on a map | drawExtent |
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 |
Extend | extend extend,Extent-method extend,Raster-method |
Filename extensions | extension extension<- |
Extent | bbox,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 coordinates | ceiling,Extent-method floor,Extent-method |
Class "Extent" | Extent Extent-class show,Extent-method |
Extract values from Raster objects | extract 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 object | xmax 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 values | maxValue maxValue,RasterBrick-method maxValue,RasterLayer-method maxValue,RasterStack-method minValue minValue,RasterBrick-method minValue,RasterLayer-method minValue,RasterStack-method |
Factors | as.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 |
Filename | filename |
Filled contour plot | filledContour |
Flip | flip flip,RasterLayer-method flip,RasterStackBrick-method |
Flow path | flowPath |
Focal values | focal focal,RasterLayer-method |
Focal weights matrix | focalWeight |
Frequency table | freq freq,RasterLayer-method freq,RasterStackBrick-method |
Gain and offset of values on file | gain gain<- offs offs<- |
Get the coordinates of a vector type Spatial* object | geom geom,data.frame-method geom,SpatialLines-method geom,SpatialPoints-method geom,SpatialPolygons-method |
Get geographic data | ccodes getData |
Get raster cell values | getValues 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 values | getValuesBlock getValuesBlock,RasterBrick-method getValuesBlock,RasterLayer-method getValuesBlock,RasterLayerSparse-method getValuesBlock,RasterStack-method |
Get focal raster cell values | getValuesFocal getValuesFocal,Raster,missing,missing,numeric-method getValuesFocal,Raster,numeric,numeric,numeric-method getValuesFocal,Raster-method |
Distance on a grid | gridDistance gridDistance,RasterLayer-method |
Header files | hdr |
Show the head or tail of a Raster* object | head head,RasterLayer-method head,RasterStackBrick-method head,Spatial-method tail tail,RasterLayer-method tail,RasterStackBrick-method tail,Spatial-method |
Hill shading | hillShade |
Histogram | hist hist,Raster-method |
Image | image image,RasterLayer-method image,RasterStackBrick-method |
Read a .ini file | readIniFile |
Initialize a Raster object with values | init init,Raster-method |
Interpolate | interpolate interpolate,Raster-method |
Intersect | intersect 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 file | KML KML,RasterLayer-method KML,RasterStackBrick-method KML,Spatial-method |
Layerize | layerize layerize,RasterLayer,missing-method layerize,RasterLayer,RasterLayer-method |
Correlation and (weighted) covariance | layerStats |
Local functions | localFun 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 object | mask 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 functions | log,Raster-method Math,Raster-method Math,RasterLayerSparse-method Math-methods Math2,Extent-method Math2,Raster-method |
Merge Raster* objects | merge merge,Extent,ANY-method merge,Raster,Raster-method merge,RasterStackBrick,missing-method |
Metadata | metadata metadata,Raster-method metadata<- |
modal value | modal modal,ANY-method modal,Raster-method |
Merge Raster* objects using a function for overlapping areas | mosaic mosaic,Raster,Raster-method |
Moving functions | movingFun |
Names of raster layers | labels,Raster-method names names,Raster-method names,RasterStack-method names<- names<-,Raster-method |
Set the NA value of a RasterLayer | NAvalue NAvalue<- |
Number or rows, columns, and cells of a Raster* object | length,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 layers | nlayers nlayers,BasicRaster-method nlayers,Raster-method nlayers,RasterBrick-method nlayers,RasterStack-method nlayers,Spatial-method |
Global options for the raster package | rasterOptions tmpDir |
Origin | origin origin,BasicRaster-method origin<- origin<-,BasicRaster-method |
Overlay Raster objects | overlay overlay,Raster,missing-method overlay,Raster,Raster-method |
Pairs plot (matrix of scatterplots) | pairs pairs,RasterStackBrick-method |
Perspective plot | persp persp,RasterLayer-method persp,RasterStackBrick-method |
Plot a Raster* object | lines,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 object | plotRGB plotRGB,RasterStackBrick-method |
Distance between points | pointDistance |
Spatial model predictions | predict predict,Raster-method |
Helper functions for programming | canProcessInMemory 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 object | projectExtent projectRaster |
Raster file properties | dataSigned dataSize |
Raster quantiles | quantile quantile,Raster-method |
Create a RasterLayer object | raster 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* classes | BasicRaster-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 numbers | rasterFromCells |
Create a Raster* object from x, y, z values | rasterFromXYZ |
Rasterize points, lines, or polygons | rasterize 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 files | rasterTmpFile removeTmpFiles showTmpFiles |
Raster to contour lines conversion | rasterToContour |
Raster to points conversion | rasterToPoints |
Raster to polygons conversion | rasterToPolygons |
Rcpp classes | Rcpp_SpExtent-class Rcpp_SpPoly-class Rcpp_SpPolygons-class Rcpp_SpPolyPart-class SpExtent SpPoly SpPoly-class SpPolygons SpPolygons-class SpPolyPart SpPolyPart-class |
Read values from disk | readAll readAll,RasterBrick-method readAll,RasterLayer-method readAll,RasterStack-method |
Reclassify | reclassify reclassify,Raster-method |
rectify a Raster object | rectify 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 object | resample resample,Raster,Raster-method |
Resolution | res res,BasicRaster-method res<- res<-,BasicRaster-method xres xres,BasicRaster-method yres yres,BasicRaster-method |
Create a Red-Green-Blue Raster object | RGB RGB,RasterLayer-method |
Rotate | rotate rotate,Raster-method |
Do the raster cells have a rotation? | rotated |
Integer values | ceiling,RasterLayer-method floor,RasterLayer-method round,RasterLayer-method trunc,RasterLayer-method |
Row or column number from a cell number | colFromCell colFromCell,BasicRaster,numeric-method rowColFromCell rowColFromCell,BasicRaster,numeric-method rowFromCell rowFromCell,BasicRaster,numeric-method |
rowSums and colSums for Raster objects | colSums colSums,Raster-method rowSums rowSums,Raster-method |
Sample integer values | sampleInt |
Random sample | sampleRandom sampleRandom,Raster-method |
Regular sample | sampleRegular sampleRegular,Raster-method |
Stratified random sample | sampleStratified sampleStratified,RasterLayer-method |
Scale values | scale scale,Raster-method |
scalebar | scalebar |
Geometric subsetting | select select,Raster-method select,Spatial-method |
Set the extent of a RasterLayer | extent<- setExtent |
Compute min and max values | setMinMax setMinMax,RasterBrick-method setMinMax,RasterLayer-method setMinMax,RasterStack-method |
Set values of a Raster object | setValues 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 shapefile | shapefile shapefile,character-method shapefile,Spatial-method |
Shift | shift shift,Raster-method shift,SpatialLines-method shift,SpatialPoints-method shift,SpatialPolygons-method |
Slope and aspect | slopeAspect |
Create SpatialLines* or SpatialPolygons* | spLines spPolygons |
Use spplot to plot a Raster* or other object | lines,SpatialPolygons-method spplot spplot,Raster-method spplot,SpatialLines-method spplot,SpatialPoints-method spplot,SpatialPolygons-method spplot,SpatRaster-method spplot,SpatVector-method |
Create a RasterStack object | stack 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 RasterBrick | stackApply |
Save or open a RasterStack file | stackOpen stackSave |
Select cell values from a multi-layer Raster* object | stackSelect stackSelect,RasterStackBrick,Raster-method |
Stretch | stretch stretch,Raster-method |
Subset layers in a Raster* object | subset subset,Raster-method subset,RasterStack-method |
Substitute values in a Raster* object | subs subs,Raster,data.frame-method |
Summary | summary,RasterLayer-method summary,RasterStackBrick-method |
Summary methods | mean,Raster-method median,Raster-method Summary,Raster-method Summary-methods |
Symetrical difference | symdif symdif,SpatialPolygons,SpatialPolygons-method |
Terrain characteristics | terrain terrain,RasterLayer-method |
Add labels to a map | text text,RasterLayer-method text,RasterStackBrick-method text,SpatialPoints-method text,SpatialPolygons-method |
Transpose | t t,RasterLayer-method t,RasterStackBrick-method |
Trim | trim trim,character-method trim,data.frame-method trim,matrix-method trim,Raster-method |
Union Extent or SpatialPolygons* objects | union union,Extent,Extent-method union,SpatialLines,SpatialLines-method union,SpatialPoints,SpatialPoints-method union,SpatialPolygons,missing-method union,SpatialPolygons,SpatialPolygons-method |
Unique values | unique unique,RasterLayer,missing-method unique,RasterStackBrick,missing-method |
Unstack | unstack 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 number | validCell validCol validRow |
Create valid names | validNames |
Weighted mean of rasters | weighted.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 writing | writeFormats |
Write raster data to a file | writeRaster writeRaster,RasterLayer,character-method writeRaster,RasterStackBrick,character-method |
Write values to a file | writeStart 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 number | coordinates 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-values | getZ setZ |
z (time) apply | zApply |
Zonal statistics | zonal zonal,RasterLayer,RasterLayer-method zonal,RasterStackBrick,RasterLayer-method |
Zoom in on a map | zoom zoom,missing-method zoom,Raster-method zoom,Spatial-method |