Learn R Programming

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

raster (version 1.7-6)

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

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

December 2nd, 2010

Functions in raster (1.7-6)

unionExtent

Extent union
rowFromCell

Row or column number from a cell number
quantile

Raster quantiles
nlayers

Number of layers
Logic-methods

Logical operators and functions
rasterToPolygons

Raster to polygons conversion
blockSize

Block size for writing files
compare

Compare
area

Size of cells
coordinates

Coordinates
contour

Contour plot
click

Click on a map
as.logical

Change values to logical
persp

Perspective plot
KML

Write a KML file
Arith-methods

Arithmic with Raster* objects
extract

Extract values from Raster objects
brick

Create a RasterBrick object
image

Image
round

Integer values
distance

Distance
boxplot

Box plot of Raster objects
Cluster

Use a cluster or multi-core CPU
as.matrix

Get a matrix with raster cell values
bands

Number of bands
factors

Factors
getValuesBlock

Get a block of raster cell values
alignExtent

Align an extent (object of class Extent)
cellFrom

Get cell, row, or column number
cellValues

Extract values for one or more cells / points
distanceFromPoints

Distance from points
cut

Convert values to classes
crosstab

Cross-tabulate
filename

Filename
intersectExtent

Extent intersection
disaggregate

Disaggregate
cellsFromExtent

Cells from Extent
edge

Edge detection
worldFile

Header files
resample

Resample
datasource

Are values in memory and/or on disk?
aggregate

Aggregate cells
clump

Detect clumps
interpolate

Interpolate
count

Count
Options

Global options for the raster package
addLayer

Add or drop a layer
mask

Mask values in a Raster object
initialize

Intitialize
density

Density plot
getValues

Get raster cell values
properties

Raster file properties
cellStats

Cell statistics
merge

Merge RasterLayers
expand

Expand
cover

Replace NA values with values of other layers
hist

Histogram
freq

Frequency table
Raster-class

Raster* classes
pointDistance

Distance between points
shift

Shift
calc

Calculate
gridDistance

Grid distance
raster

Create a RasterLayer object
predict

Spatial model predictions
Function writing

Helper functions to use in new functions you develop
rasterToPoints

Raster to points conversion
saverasterstack

Save or open a RasterStack file
drawExtent

Draw extet
filledContour

Filled contour plot
getData

Get geographic data
mosaic

Merge RasterLayers using a function for overlapping areas
substitute

Substitute values in a RasterLayer
rotate

Rotate
adjacency

Adjacency
rasterFromCells

Subset a raster by cell numbers
NAvalue

Set the NA value of a RasterLayer
writeHdr

Header files
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
dim

Dimensions of a Raster* object
xyFromCell

Coordinates from a row, column or cell number
Extent-class

Class "Extent"
Math-methods

Mathematical functions
plotRGB

Red-Green-Blue plot of a multi-layered Raster object
Summary-methods

Summary methods
clearValues

Clear values
unstack

Unstack
rasterizeObsolete

Obsolete
rasterTmpFile

Temporary files
plot

Plot a Raster* object
Compare-methods

Compare Raster* objects
crop

Crop
draw

Draw a line or polygon
extension

Filename extensions
projectRaster

Project a Raster object
overlay

Overlay Raster objects
inifile

Read a .ini file
direction

Direction
rasterToContour

Raster to contour lines conversion
isLonLat

Is this longitude/latitude data?
obsolete

Obsolete functions
rasterize

Rasterize points, lines, or polygons
setMinMax

Compute min and max values
reclass

Reclassify
writeFormats

File types for writing
stack

Create a RasterStack object
dataType

Data type
origin

Origin
rasterFromXYZ

Create a RasterLayer from x, y, z values
SampleInt

Sample integer values
raster-package

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

Which cells are TRUE?
resolution

Resolution
plot3D

Interactive 3D plot of a RasterLayer
extent

Extent
setValues

Set values of a Raster object
focalFilter

Focal filter
extremeValues

Minimum and maximum values
subset

Subset layers in a Raster* object
stats

Miscellaneous statistical functions
polygonFromExtent

Polygon from Extent
unique

Unique values
validCell

Validity of a cell, column or row number
setExtent

Set the extent of a RasteLayer
Summary

Summary
Gain and offset

Gain and offset of values on file
Sample

Random or regular sample
projection

Get or set a projection
focal

Focal
zoom

Zoom in on a plot
ncell

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

Round extent coordinates
pairs

Pairs plot (matrix of scatterplots)
flip

Flip
trim

Trim
writeRaster

Write raster data to a file
indexing

Extract or replace cell values of a Raster object
zonal

Zonal statistics
readAll

Read values from disk
writeValues

Write values to a file