Learn R Programming

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

raster (version 1.4-10)

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 functons, 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.4-10

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

August 29th, 2010

Functions in raster (1.4-10)

Arith-methods

Arithmic with Raster* objects
Raster-class

Raster* classes
calc

Calculate
clump

Detect clumps
cellStats

Cell statistics
initialize

Intitialize
Compare-methods

Compare Raster* objects
polygonsToRaster

Polygons to raster conversion
Logic-methods

Logical operators and functions
KML

KML
cellsFromExtent

Cells from Extent
disaggregate

Disaggregate
distance

Distance
focalValues

Extract focal values
datasource

Are values in memory and/or on disk?
compare

Compare
Math-methods

Mathematical functions
plot

Plot a Raster* object
focal

Focal
merge

Merge RasterLayers
adjacency

Adjacency
projection

projection
nlayers

Layers
isLonLat

Is this longitude/latitude data?
density

Density plot
xyValues

Extract values at xy coordinates
alignExtent

Align an extent (object of class Extent)
zoom

Zoom in on a plot
changeStack

Add or drop a layer
cellFrom

Get cell, row, or column number
filename

Filename
distanceFromPoints

Distance from points
rasterToPolygons

Raster to polygons conversion
getValuesBlock

Get raster cell values
worldFile

Header files
pairs

Pair plots
brick

Create a RasterBrick object
reclass

Reclassify
resolution

Resolution
linesToRaster

Lines to raster
cellValues

Extract values for one or more cells
writeRaster

Write raster data to a file
properties

Raster file properties
crosstab

Cross-tabulate
draw

Draw a line or polygon
polygonValues

Extract values from a RasterLayer by polygons
image

Image
Summary-methods

Summary methods
quantile

RasterLayer quantiles
rasterToPoints

Raster to points conversion
area

Size of cells
Options

Global options for the raster package
edge

Edge detection
bands

Bands
crop

Crop
hist

Histogram
Summary

Summary
click

Click
subset

Subset layers in a Raster* object
drawExtent

Draw extet
getData

Get geographic data
mosaic

mosaic RasterLayers
Function writing

Helper functions to use in new functions you develop
count

Count
expand

Expand
setValues

Set values
cover

Cover
SampleInt

Sample integer values
extension

Filename extensions
persp

Perspective plot
indexing

Values from index and replacement
values

Get raster values
contour

Contour plot
aggregate

Aggregate
dimensions

Dimensions of a Raster* object
pointsToRaster

Point to raster conversion
direction

Direction
factors

Factors
flip

Flip
getValues

Get raster cell values
rasterTmpFile

Temporary files
shift

Shift
pointDistance

Distance between points
saverasterstack

Save or open a RasterStack file
projectRaster

project a RasterLayer
polygonFromExtent

Polygon from Extent
rasterFromCells

Subset a raster by cell numbers
rasterFromXYZ

Create a RasterLayer from x, y, z values
mask

Mask values in a Raster object
raster-package

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

Read a .ini file
setMinMax

Compute min and max values
nudgeExtent

Round extent coordinates
rotate

Rotate
trim

Trim
unique

Unique values
read

Read values from disk
writeFormats

File types for writing
Extent-class

Class "Extent"
resample

Resample
rowFromCell

Row or column number from a cell number
overlay

Overlay
focalFilter

Focal filter
Sample

Random or regular sample
extent

Extent
raster

Create a RasterLayer object
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
which

Which cells are TRUE?
zonal

Zonal statistics
unionExtent

Extent union
rasterToContour

Raster to contour lines conversion
stats

Miscellaneous statistical functions
round

Integer values
filledContour

Filled contour plot
xyFromCell

Coordinates from a row, column or cell number
coordinates

Coordinates
setExtent

Set the extent of a RasteLayer
stack

Create a RasterStack object
validCell

Validity of a cell, column or row number
unstack

Unstack
origin

Origin
writeRasterHdr

Header files
as.logical

Change values to logical
substitute

Substitute values in a RasterLayer
plot3D

Interactive 3D plot of a RasterLayer
NAvalue

Set the NA value of a RasterLayer
gridDistance

Grid distance
dataType

Data type
writeValues

Write values to a file
extremeValues

Minimum and maximum values
copyRasterFile

Copy or move a raster file
freq

Frequency table
interpolate

Interpolate
intersectExtent

Extent intersection
plotRGB

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

Spatial model predictions