Learn R Programming

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

raster (version 1.7-29)

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

138,789

Version

1.7-29

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

January 17th, 2011

Functions in raster (1.7-29)

Cluster

Use a multi-core (snow) cluster
filledContour

Filled contour plot
rasterFromCells

Subset a raster by cell numbers
clearValues

Clear values
Math-methods

Mathematical functions
area

Size of cells
distanceFromPoints

Distance from points
extract

Extract values from Raster objects
extension

Filename extensions
cellValues

Obsolete functions
draw

Draw a line or polygon
filename

Filename
blockSize

Block size for writing files
round

Integer values
calc

Calculate
initialize

Intitialize
shift

Shift
KML

Write a KML file
Extent-class

Class "Extent"
Raster-class

Raster* classes
bands

Number of bands
focal

Focal
plot3D

Interactive 3D plot of a RasterLayer
clump

Detect clumps
plotRGB

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

Create an Extent object by drawing on a map
inifile

Read a .ini file
hist

Histogram
aggregate

Aggregate cells
dataType

Data type
cut

Convert values to classes
edge

Edge detection
getData

Get geographic data
distance

Distance
pointDistance

Distance between points
as.matrix

Get a matrix with raster cell values
raster

Create a RasterLayer object
datasource

Are values in memory and/or on disk?
extremeValues

Minimum and maximum values
focalFilter

Focal filter
nlayers

Number of layers
sampleRegular

Regular sample
mask

Mask values in a Raster object
pairs

Pairs plot (matrix of scatterplots)
quantile

Raster quantiles
rasterToPoints

Raster to points conversion
setValues

Set values of a Raster object
update

Update raster cells of files (on disk)
xyFromCell

Coordinates from a row, column or cell number
head

Show the head or tail of the values of a RasterLaayer
projection

Get or set a projection
merge

Merge RasterLayers
intersectExtent

Extent intersection
brick

Create a RasterBrick object
replacement

Extract or replace cell values of a Raster object
gridDistance

Grid distance
rasterToPolygons

Raster to polygons conversion
Logic-methods

Logical operators and functions
alignExtent

Align an extent (object of class Extent)
origin

Origin
flip

Flip
setExtent

Set the extent of a RasteLayer
as.logical

Change values to logical
rasterize

Rasterize points, lines, or polygons
readAll

Read values from disk
NAvalue

Set the NA value of a RasterLayer
stack

Create a RasterStack object
writeRaster

Write raster data to a file
Compare-methods

Compare Raster* objects
Extent coordinates

Coordinates of the Extent of a Raster object
resample

Resample
cellFrom

Get cell, row, or column number
projectRaster

Project a Raster object
plot

Plot a Raster* object
resolution

Resolution
expand

Expand
cellsFromExtent

Cells from Extent
Summary-methods

Summary methods
dim

Dimensions of a Raster* object
saverasterstack

Save or open a RasterStack file
addLayer

Add or drop a layer
cellStats

Cell statistics
getValuesBlock

Get a block of raster cell values
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
validCell

Validity of a cell, column or row number
direction

Direction
rasterToContour

Raster to contour lines conversion
getValues

Get raster cell values
Gain and offset

Gain and offset of values on file
unstack

Unstack
predict

Spatial model predictions
disaggregate

Disaggregate
Options

Global options for the raster package
isLonLat

Is this longitude/latitude data?
interpolate

Interpolate
click

Click on a map
ncell

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

Box plot of Raster objects
sampleRandom

Random sample
persp

Perspective plot
reclass

Reclassify
properties

Raster file properties
polygonFromExtent

Polygon from Extent
contour

Contour plot
setMinMax

Compute min and max values
Arith-methods

Arithmic with Raster* objects
substitute

Substitute values in a RasterLayer
rasterizeObsolete

Obsolete
rasterFromXYZ

Create a RasterLayer from x, y, z values
unionExtent

Extent union
trim

Trim
which

Which cells are TRUE?
crop

Crop
obsolete

Obsolete functions
hdr

Header files
SampleInt

Sample integer values
density

Density plot
extent

Extent
subset

Subset layers in a Raster* object
crosstab

Cross-tabulate
writeValues

Write values to a file
cover

Replace NA values with values of other layers
zoom

Zoom in on a plot
count

Count
compare

Compare
factors

Factors
writeFormats

File types for writing
rasterTmpFile

Temporary files
rotate

Rotate
nudgeExtent

Round extent coordinates
adjacency

Adjacency
image

Image
freq

Frequency table
mosaic

Merge RasterLayers using a function for overlapping areas
stats

Miscellaneous statistical functions
Summary

Summary
zonal

Zonal statistics
Programming

Helper functions for programming
raster-package

An overview of the functions in this package
overlay

Overlay Raster objects
transpose

transpose
rowFromCell

Row or column number from a cell number
unique

Unique values