Learn R Programming

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

raster (version 1.8-9)

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

153,616

Version

1.8-9

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

March 27th, 2011

Functions in raster (1.8-9)

Summary-methods

Summary methods
Math-methods

Mathematical functions
Cluster

Use a multi-core (snow) cluster
Compare-methods

Compare Raster* objects
predict

Spatial model predictions
rasterFromXYZ

Create a RasterLayer from x, y, z values
edge

Edge detection
drawExtent

Create an Extent object by drawing on a map
as.logical

Change values to logical
calc

Calculate
isLonLat

Is this longitude/latitude data?
raster

Create a RasterLayer object
aggregate

Aggregate cells
dataType

Data type
Raster-class

Raster* classes
bands

Number of bands
contour

Contour plot
KML

Write a KML file
datasource

Are values in memory and/or on disk?
ncell

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

Expand
factors

Factors
Arith-methods

Arithmic with Raster* objects
focal

Focal
cellFrom

Get cell, row, or column number
addLayer

Add or drop a layer
direction

Direction
rasterToContour

Raster to contour lines conversion
gridDistance

Grid distance
head

Show the head or tail of a Raster* object
focalFilter

Focal filter
plot3D

Interactive 3D plot of a RasterLayer
cover

Replace NA values with values of other layers
mask

Mask values in a Raster object
rasterToPolygons

Raster to polygons conversion
pointDistance

Distance between points
getValues

Get raster cell values
extremeValues

Minimum and maximum values
density

Density plot
extract

Extract values from Raster objects
hist

Histogram
Extent coordinates

Coordinates of the Extent of a Raster object
obsolete

Obsolete functions
distanceFromPoints

Distance from points
cut

Convert values to classes
sampleRegular

Regular sample
pairs

Pairs plot (matrix of scatterplots)
crosstab

Cross-tabulate
image

Image
hdr

Header files
quantile

Raster quantiles
round

Integer values
Extent-class

Class "Extent"
rasterToPoints

Raster to points conversion
persp

Perspective plot
resolution

Resolution
dim

Dimensions of a Raster* object
cellsFromExtent

Cells from Extent
brick

Create a RasterBrick object
freq

Frequency table
crop

Crop
filledContour

Filled contour plot
getData

Get geographic data
as.matrix

Get a matrix with raster cell values
cellStats

Cell statistics
rasterize

Rasterize points, lines, or polygons
flip

Flip
hillShade

Hill shading
distance

Distance
saverasterstack

Save or open a RasterStack file
sampleRandom

Random sample
projection

Get or set a projection
alignExtent

Align an extent (object of class Extent)
atan2

Two argument arc-tangent
Logic-methods

Logical operators and functions
compare

Compare
adjacency

Adjacency
Gain and offset

Gain and offset of values on file
resample

Resample a Raster object
cellValues

Obsolete functions
disaggregate

Disaggregate
Options

Global options for the raster package
draw

Draw a line or polygon
intersectExtent

Extent intersection
plot

Plot a Raster* object
plotRGB

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

Sample integer values
replacement

Extract or replace cell values of a Raster object
Programming

Helper functions for programming
readAll

Read values from disk
nudgeExtent

Round extent coordinates
inifile

Read a .ini file
overlay

Overlay Raster objects
raster-package

An overview of the functions in this package
boxplot

Box plot of Raster objects
rasterFromCells

Subset a raster by cell numbers
rasterTmpFile

Temporary files
click

Click on a map
projectRaster

Project a Raster object
polygonFromExtent

Polygon from Extent
rasterizeObsolete

Obsolete
rotate

Rotate
area

Size of cells
clump

Detect clumps
filename

Filename
properties

Raster file properties
count

Count
clearValues

Clear values
reclass

Reclassify
extent

Extent
extension

Filename extensions
getValuesBlock

Get a block of raster cell values
merge

Merge RasterLayers
nlayers

Number of layers
origin

Origin
rowFromCell

Row or column number from a cell number
interpolate

Interpolate
substitute

Substitute values in a RasterLayer
blockSize

Block size for writing files
stats

Miscellaneous statistical functions
trim

Trim
initialize

Intitialize
mosaic

Merge RasterLayers using a function for overlapping areas
setValues

Set values of a Raster object
setMinMax

Compute min and max values
xyFromCell

Coordinates from a row, column or cell number
unique

Unique values
which

Which cells are TRUE?
stack

Create a RasterStack object
stackSelect

Select cell values from a multi-layer Raster* object
shift

Shift
transpose

transpose
Summary

Summary
unstack

Unstack
NAvalue

Set the NA value of a RasterLayer
validCell

Validity of a cell, column or row number
writeValues

Write values to a file
unionExtent

Extent union
setExtent

Set the extent of a RasteLayer
zonal

Zonal statistics
writeFormats

File types for writing
subset

Subset layers in a Raster* object
Slope and aspect

Slope and aspect
update

Update raster cells of files (on disk)
writeRaster

Write raster data to a file
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
zoom

Zoom in on a plot