Learn R Programming

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

raster (version 1.6-22)

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.6-22

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

November 21st, 2010

Functions in raster (1.6-22)

nlayers

Number of layers
Raster-class

Raster* classes
Extent-class

Class "Extent"
bands

Number of bands
Cluster

Use a cluster or multi-core CPU
factors

Factors
Summary-methods

Summary methods
clump

Detect clumps
calc

Calculate
density

Density plot
count

Count
worldFile

Header files
cellFrom

Get cell, row, or column number
ncell

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

Is this longitude/latitude data?
trim

Trim
inifile

Read a .ini file
Function writing

Helper functions to use in new functions you develop
extent

Extent
reclass

Reclassify
click

Click on a map
focal

Focal
pairs

Pair plots
plot

Plot a Raster* object
saverasterstack

Save or open a RasterStack file
rasterFromCells

Subset a raster by cell numbers
polygonFromExtent

Polygon from Extent
validCell

Validity of a cell, column or row number
setExtent

Set the extent of a RasteLayer
projection

Get or set a projection
filename

Filename
merge

Merge RasterLayers
stack

Create a RasterStack object
dimensions

Dimensions of a Raster* object
plotRGB

Red-Green-Blue plot of a multi-layered Raster object
raster-package

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

Get raster cell values
writeValues

Write values to a file
setValues

Set values of a Raster object
shift

Shift
writeRaster

Write raster data to a file
rasterize

Rasterize points, lines, or polygons
rowFromCell

Row or column number from a cell number
zonal

Zonal statistics
resolution

Resolution
subset

Subset layers in a Raster* object
setMinMax

Compute min and max values
substitute

Substitute values in a RasterLayer
drawExtent

Draw extet
Arith-methods

Arithmic with Raster* objects
rotate

Rotate
Compare-methods

Compare Raster* objects
alignExtent

Align an extent (object of class Extent)
gridDistance

Grid distance
rasterToContour

Raster to contour lines conversion
projectRaster

Project a Raster object
stats

Miscellaneous statistical functions
brick

Create a RasterBrick object
round

Integer values
aggregate

Aggregate cells
cellValues

Extract values for one or more cells / points
compare

Compare
Math-methods

Mathematical functions
SampleInt

Sample integer values
crosstab

Cross-tabulate
coordinates

Coordinates
extension

Filename extensions
area

Size of cells
unionExtent

Extent union
Gain and offset

Gain and offset of values on file
getData

Get geographic data
filledContour

Filled contour plot
obsolete

Obsolete functions
changeStack

Add or drop a layer
unstack

Unstack
KML

Write a KML file
as.logical

Change values to logical
clearValues

Clear values
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
contour

Contour plot
crop

Crop
cellStats

Cell statistics
focalFilter

Focal filter
cut

Convert values to classes
disaggregate

Disaggregate
getValuesBlock

Get a block of raster cell values
image

Image
Logic-methods

Logical operators and functions
dataType

Data type
draw

Draw a line or polygon
distanceFromPoints

Distance from points
overlay

Overlay Raster objects
indexing

Extract or replace cell values of a Raster object
nudgeExtent

Round extent coordinates
properties

Raster file properties
edge

Edge detection
writeHdr

Header files
Summary

Summary
direction

Direction
adjacency

Adjacency
distance

Distance
hist

Histogram
Options

Global options for the raster package
cellsFromExtent

Cells from Extent
zoom

Zoom in on a plot
interpolate

Interpolate
rasterFromXYZ

Create a RasterLayer from x, y, z values
flip

Flip
extract

Extract values from Raster objects
mosaic

Merge RasterLayers using a function for overlapping areas
raster

Create a RasterLayer object
writeFormats

File types for writing
quantile

Raster quantiles
origin

Origin
initialize

Intitialize
which

Which cells are TRUE?
plot3D

Interactive 3D plot of a RasterLayer
unique

Unique values
resample

Resample
rasterToPolygons

Raster to polygons conversion
rasterToPoints

Raster to points conversion
xyFromCell

Coordinates from a row, column or cell number
datasource

Are values in memory and/or on disk?
Sample

Random or regular sample
cover

Replace NA values with values of other layers
rasterTmpFile

Temporary files
expand

Expand
intersectExtent

Extent intersection
extremeValues

Minimum and maximum values
predict

Spatial model predictions
NAvalue

Set the NA value of a RasterLayer
as.matrix

Get a matrix with raster cell values
pointDistance

Distance between points
blockSize

Block size for writing files
freq

Frequency table
persp

Perspective plot
mask

Mask values in a Raster object
rasterizeObsolete

Vector to raster conversion
readAll

Read values from disk