Learn R Programming

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

raster (version 1.7-8)

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.7-8

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

December 3rd, 2010

Functions in raster (1.7-8)

quantile

Raster quantiles
Logic-methods

Logical operators and functions
cellStats

Cell statistics
Options

Global options for the raster package
getData

Get geographic data
rasterTmpFile

Temporary files
worldFile

Header files
focalFilter

Focal filter
addLayer

Add or drop a layer
factors

Factors
adjacency

Adjacency
mosaic

Merge RasterLayers using a function for overlapping areas
Math-methods

Mathematical functions
focal

Focal
inifile

Read a .ini file
clearValues

Clear values
Summary

Summary
resample

Resample
dataType

Data type
filledContour

Filled contour plot
writeRaster

Write raster data to a file
bands

Number of bands
cellValues

Extract values for one or more cells / points
dim

Dimensions of a Raster* object
plot3D

Interactive 3D plot of a RasterLayer
obsolete

Obsolete functions
projection

Get or set a projection
rasterize

Rasterize points, lines, or polygons
resolution

Resolution
contour

Contour plot
rasterFromCells

Subset a raster by cell numbers
Arith-methods

Arithmic with Raster* objects
subset

Subset layers in a Raster* object
ncell

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

Is this longitude/latitude data?
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
which

Which cells are TRUE?
round

Integer values
calc

Calculate
coordinates

Coordinates
merge

Merge RasterLayers
interpolate

Interpolate
pairs

Pairs plot (matrix of scatterplots)
Raster-class

Raster* classes
click

Click on a map
raster

Create a RasterLayer object
distance

Distance
persp

Perspective plot
KML

Write a KML file
initialize

Intitialize
extension

Filename extensions
freq

Frequency table
count

Count
as.matrix

Get a matrix with raster cell values
boxplot

Box plot of Raster objects
density

Density plot
substitute

Substitute values in a RasterLayer
unstack

Unstack
NAvalue

Set the NA value of a RasterLayer
saverasterstack

Save or open a RasterStack file
shift

Shift
rasterizeObsolete

Obsolete
datasource

Are values in memory and/or on disk?
xyFromCell

Coordinates from a row, column or cell number
writeValues

Write values to a file
flip

Flip
predict

Spatial model predictions
unionExtent

Extent union
plot

Plot a Raster* object
compare

Compare
direction

Direction
area

Size of cells
indexing

Extract or replace cell values of a Raster object
hist

Histogram
Extent-class

Class "Extent"
plotRGB

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

Read values from disk
SampleInt

Sample integer values
writeFormats

File types for writing
rasterToPoints

Raster to points conversion
Sample

Random or regular sample
extent

Extent
mask

Mask values in a Raster object
setExtent

Set the extent of a RasteLayer
rotate

Rotate
unique

Unique values
rowFromCell

Row or column number from a cell number
writeHdr

Header files
Summary-methods

Summary methods
cellsFromExtent

Cells from Extent
zonal

Zonal statistics
crosstab

Cross-tabulate
alignExtent

Align an extent (object of class Extent)
intersectExtent

Extent intersection
Function writing

Helper functions to use in new functions you develop
nudgeExtent

Round extent coordinates
clump

Detect clumps
Cluster

Use a cluster or multi-core CPU
cut

Convert values to classes
getValues

Get raster cell values
gridDistance

Grid distance
raster-package

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

Extract values from Raster objects
setValues

Set values of a Raster object
rasterToContour

Raster to contour lines conversion
validCell

Validity of a cell, column or row number
zoom

Zoom in on a plot
as.logical

Change values to logical
blockSize

Block size for writing files
cellFrom

Get cell, row, or column number
disaggregate

Disaggregate
brick

Create a RasterBrick object
drawExtent

Draw extet
nlayers

Number of layers
origin

Origin
polygonFromExtent

Polygon from Extent
distanceFromPoints

Distance from points
reclass

Reclassify
edge

Edge detection
rasterToPolygons

Raster to polygons conversion
setMinMax

Compute min and max values
getValuesBlock

Get a block of raster cell values
stack

Create a RasterStack object
Gain and offset

Gain and offset of values on file
projectRaster

Project a Raster object
rasterFromXYZ

Create a RasterLayer from x, y, z values
stats

Miscellaneous statistical functions
Compare-methods

Compare Raster* objects
expand

Expand
draw

Draw a line or polygon
image

Image
overlay

Overlay Raster objects
pointDistance

Distance between points
aggregate

Aggregate cells
cover

Replace NA values with values of other layers
crop

Crop
extremeValues

Minimum and maximum values
filename

Filename
properties

Raster file properties
trim

Trim