Learn R Programming

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

raster (version 1.6-15)

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

125,710

Version

1.6-15

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

November 8th, 2010

Functions in raster (1.6-15)

pointDistance

Distance between points
adjacency

Adjacency
round

Integer values
zoom

Zoom in on a plot
drawExtent

Draw extet
extension

Filename extensions
filledContour

Filled contour plot
getValues

Get raster cell values
rasterize

Rasterize points, lines, or polygons
interpolate

Interpolate
crop

Crop
flip

Flip
projectRaster

Project a Raster object
Summary

Summary
contour

Contour plot
writeHdr

Header files
extract

Extract values from Raster objects
mosaic

Merge RasterLayers using a function for overlapping areas
raster

Create a RasterLayer object
clump

Detect clumps
dataType

Data type
freq

Frequency table
rasterToPoints

Raster to points conversion
resolution

Resolution
hist

Histogram
getData

Get geographic data
extent

Extent
cover

Replace NA values with values of other layers
dimensions

Dimensions of a Raster* object
Compare-methods

Compare Raster* objects
raster-package

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

Align an extent (object of class Extent)
initialize

Intitialize
changeStack

Add or drop a layer
image

Image
properties

Raster file properties
getValuesBlock

Get a block of raster cell values
isLonLat

Is this longitude/latitude data?
plot

Plot a Raster* object
predict

Spatial model predictions
cellsFromExtent

Cells from Extent
Summary-methods

Summary methods
SampleInt

Sample integer values
Function writing

Helper functions to use in new functions you develop
projection

Get or set a projection
datasource

Are values in memory and/or on disk?
expand

Expand
extremeValues

Minimum and maximum values
rasterFromXYZ

Create a RasterLayer from x, y, z values
cellFrom

Get cell, row, or column number
cellStats

Cell statistics
merge

Merge RasterLayers
distanceFromPoints

Distance from points
brick

Create a RasterBrick object
intersectExtent

Extent intersection
draw

Draw a line or polygon
factors

Factors
rasterTmpFile

Temporary files
Options

Global options for the raster package
Extent-class

Class "Extent"
readAll

Read values from disk
validCell

Validity of a cell, column or row number
KML

Write a KML file
blockSize

Block size for writing files
inifile

Read a .ini file
distance

Distance
cellValues

Extract values for one or more cells / points
compare

Compare
Arith-methods

Arithmic with Raster* objects
focal

Focal
Logic-methods

Logical operators and functions
plotRGB

Red-Green-Blue plot of a multi-layered Raster object
as.matrix

Get a matrix with raster cell values
bands

Number of bands
crosstab

Cross-tabulate
resample

Resample
overlay

Overlay Raster objects
clearValues

Clear values
cut

Convert values to classes
disaggregate

Disaggregate
ncell

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

Aggregate
count

Count
worldFile

Header files
Math-methods

Mathematical functions
focalFilter

Focal filter
filename

Filename
rowFromCell

Row or column number from a cell number
edge

Edge detection
stack

Create a RasterStack object
click

Click on a map
Raster-class

Raster* classes
density

Density plot
saverasterstack

Save or open a RasterStack file
setExtent

Set the extent of a RasteLayer
indexing

Get or replace values of Raster objects
Gain and offset

Gain and offset of values on file
obsolete

Obsolete functions
reclass

Reclassify
origin

Origin
polygonFromExtent

Polygon from Extent
which

Which cells are TRUE?
gridDistance

Grid distance
pairs

Pair plots
writeValues

Write values to a file
nlayers

Number of layers
rasterFromCells

Subset a raster by cell numbers
zonal

Zonal statistics
trim

Trim
unionExtent

Extent union
setMinMax

Compute min and max values
writeRaster

Write raster data to a file
direction

Direction
rotate

Rotate
subset

Subset layers in a Raster* object
unique

Unique values
unstack

Unstack
setValues

Set values of a Raster object
nudgeExtent

Round extent coordinates
stats

Miscellaneous statistical functions
substitute

Substitute values in a RasterLayer
writeFormats

File types for writing
xyFromCell

Coordinates from a row, column or cell number
shift

Shift
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
as.logical

Change values to logical
calc

Calculate
coordinates

Coordinates
mask

Mask values in a Raster object
rasterToPolygons

Raster to polygons conversion
rasterToContour

Raster to contour lines conversion
Sample

Random or regular sample
NAvalue

Set the NA value of a RasterLayer
area

Size of cells
persp

Perspective plot
plot3D

Interactive 3D plot of a RasterLayer
quantile

Raster quantiles
rasterizeObsolete

Vector to raster conversion