Learn R Programming

⚠️There's a newer version (3.6-32) of this package.Take me there.

raster (version 1.6-19)

Geographic analysis and modeling with raster data

Description

Reading, writing, manipulating, analyzing and modeling of gridded spatial data. The package implements basic and high-level functions, as well as map algebra. Processing of very large files is supported.

Copy Link

Version

Install

install.packages('raster')

Monthly Downloads

136,178

Version

1.6-19

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

November 15th, 2010

Functions in raster (1.6-19)

which

Which cells are TRUE?
dataType

Data type
adjacency

Adjacency
clump

Detect clumps
getValuesBlock

Get a block of raster cell values
Extent-class

Class "Extent"
compare

Compare
merge

Merge RasterLayers
calc

Calculate
hist

Histogram
datasource

Are values in memory and/or on disk?
drawExtent

Draw extet
plot

Plot a Raster* object
mosaic

Merge RasterLayers using a function for overlapping areas
getData

Get geographic data
writeHdr

Header files
extension

Filename extensions
NAvalue

Set the NA value of a RasterLayer
unique

Unique values
extract

Extract values from Raster objects
plot3D

Interactive 3D plot of a RasterLayer
rasterToContour

Raster to contour lines conversion
KML

Write a KML file
rasterToPolygons

Raster to polygons conversion
cellsFromExtent

Cells from Extent
indexing

Extract or replace cell values of a Raster object
rasterize

Rasterize points, lines, or polygons
coordinates

Coordinates
pairs

Pair plots
predict

Spatial model predictions
Gain and offset

Gain and offset of values on file
as.matrix

Get a matrix with raster cell values
Summary

Summary
Logic-methods

Logical operators and functions
Summary-methods

Summary methods
expand

Expand
count

Count
plotRGB

Red-Green-Blue plot of a multi-layered Raster object
zonal

Zonal statistics
intersectExtent

Extent intersection
getValues

Get raster cell values
cellFrom

Get cell, row, or column number
writeRaster

Write raster data to a file
extent

Extent
cellStats

Cell statistics
clearValues

Clear values
focal

Focal
ncell

Number or rows, columns, and cells of a Raster* object
cover

Replace NA values with values of other layers
extremeValues

Minimum and maximum values
gridDistance

Grid distance
worldFile

Header files
resample

Resample
factors

Factors
pointDistance

Distance between points
image

Image
freq

Frequency table
dimensions

Dimensions of a Raster* object
resolution

Resolution
writeFormats

File types for writing
click

Click on a map
SampleInt

Sample integer values
setExtent

Set the extent of a RasteLayer
inifile

Read a .ini file
area

Size of cells
changeStack

Add or drop a layer
flip

Flip
isLonLat

Is this longitude/latitude data?
nlayers

Number of layers
distanceFromPoints

Distance from points
Math-methods

Mathematical functions
overlay

Overlay Raster objects
rotate

Rotate
rasterizeObsolete

Vector to raster conversion
quantile

Raster quantiles
raster-package

Management, analysis and modeling of raster-type geographic data
shift

Shift
setMinMax

Compute min and max values
bands

Number of bands
cut

Convert values to classes
projectRaster

Project a Raster object
zoom

Zoom in on a plot
initialize

Intitialize
contour

Contour plot
alignExtent

Align an extent (object of class Extent)
interpolate

Interpolate
rowFromCell

Row or column number from a cell number
direction

Direction
unionExtent

Extent union
filledContour

Filled contour plot
properties

Raster file properties
draw

Draw a line or polygon
round

Integer values
projection

Get or set a projection
unstack

Unstack
edge

Edge detection
Sample

Random or regular sample
readAll

Read values from disk
crop

Crop
stats

Miscellaneous statistical functions
writeValues

Write values to a file
Options

Global options for the raster package
rasterTmpFile

Temporary files
xyFromCell

Coordinates from a row, column or cell number
rasterFromXYZ

Create a RasterLayer from x, y, z values
saverasterstack

Save or open a RasterStack file
obsolete

Obsolete functions
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
validCell

Validity of a cell, column or row number
substitute

Substitute values in a RasterLayer
Raster-class

Raster* classes
aggregate

Aggregate cells
focalFilter

Focal filter
crosstab

Cross-tabulate
polygonFromExtent

Polygon from Extent
blockSize

Block size for writing files
Arith-methods

Arithmic with Raster* objects
raster

Create a RasterLayer object
subset

Subset layers in a Raster* object
rasterFromCells

Subset a raster by cell numbers
rasterToPoints

Raster to points conversion
as.logical

Change values to logical
Cluster

Use a cluster or multi-core cpu
disaggregate

Disaggregate
density

Density plot
filename

Filename
mask

Mask values in a Raster object
distance

Distance
Function writing

Helper functions to use in new functions you develop
reclass

Reclassify
setValues

Set values of a Raster object
stack

Create a RasterStack object
cellValues

Extract values for one or more cells / points
nudgeExtent

Round extent coordinates
Compare-methods

Compare Raster* objects
brick

Create a RasterBrick object
origin

Origin
persp

Perspective plot
trim

Trim