Learn R Programming

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

raster (version 1.2-6)

Geographic analysis and modeling with raster data

Description

Package for reading, writing, and manipulating raster (grid) type geographic (spatial) data

Copy Link

Version

Install

install.packages('raster')

Monthly Downloads

153,616

Version

1.2-6

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

June 24th, 2010

Functions in raster (1.2-6)

bands

Bands
alignExtent

Align an extent (object of class Extent)
calc

Calculate
pointsToRaster

Point to raster conversion
interpolate

Interpolate
polygonFromExtent

Polygon from Extent
cover

Cover
Raster-class

Raster* classes
projectRaster

project a RasterLayer
changeStack

Add or drop a layer
worldFile

Header files
compare

Compare
Extent-class

Class "Extent"
overlay

Overlay
nlayers

Layers
pairs

Pair plots
flip

Flip
crosstab

Cross-tabulate
getValues

Get raster cell values
adjacency

Adjacency
focal

Focal
crop

Crop
factors

Factors
drawExtent

Draw extet
cellValues

Extract values for one or more cells
extension

Filename extensions
expand

Expand
rasterToPoints

Raster to points conversion
intersectExtent

Extent intersection
coordinates

Coordinates
aggregate

Aggregate
contour

Contour plot
Compare-methods

Compare Raster* objects
getValuesBlock

Get raster cell values
dataType

Data type
quantile

RasterLayer quantiles
draw

Draw a line or polygon
Summary-methods

Summary methods
edge

Edge detection
extent

Extent
density

Density plot
resample

Resample
distanceFromPoints

Distance from points
rasterToPolygons

Raster to polygons conversion
Sample

Random or regular sample
filledContour

Filled contour plot
brick

Create a RasterBrick object
Options

Global options for the raster package
SampleInt

Sample integer values
gridSample

Stratified regular sample on a grid
Math-methods

Mathematical functions
direction

Direction
inifile

Read a .ini file
trim

Trim
properties

Raster file properties
unique

Unique values
as.logical

as.logical
dataProperties

Data properties
cellsFromExtent

Cells from Extent
substitute

Substitute values in a RasterLayer
getData

Get geographic data
setMinMax

Compute min and max values
freq

Frequency table
raster

Create a RasterLayer object
cellStats

Cell statistics
unstack

Unstack
dimensions

Dimensions of a Raster* object
cellFrom

Get cell, row, or column number
extremeValues

Minimum and maximum values
disaggregate

Disaggregate
hist

Histogram
persp

Perspective plot
isLonLat

Is this longitude/latitude data?
pointDistance

Distance between points
writeRaster

Write raster data to a file
writeValues

Write values to a file
nudgeExtent

Round extent coordinates
mask

mask
rasterToContour

Raster to contour lines conversion
validCell

Validity of a cell, column or row number
values

Get raster values
focalValues

Extract focal values
writeFormats

File types for writing
rotate

Rotate
image

Image
saverasterstack

Save or open a RasterStack file
focalFilter

Focal filter
area

Size of cells
plot3D

Interactive 3D plot of a RasterLayer
merge

Merge RasterLayers
xyFromCell

Coordinates from a row, column or cell number
click

Click
count

Count
mosaic

mosaic RasterLayers
gridDistance

Grid distance
rowFromCell

Row or column number from a cell number
predict

Spatial model predictions
plotRGB

Red-Green-Blue plot of RasterLayers
Function writing

Helper functions to use in new functions you develop
writeRasterHdr

Header files
Arith-methods

Arithmic with rasters
plot

Plot a Raster* object
origin

Origin
unionExtent

Extent union
which

Which cells are TRUE?
zonal

Zonal statistics
round

Integer values
clump

Detect clumps
zoom

Zoom in on a plot
rasterTmpFile

Temporary files
raster-package

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

Miscellaneous statistical functions
projection

projection
copyRasterFile

Copy or move a raster file
setValues

Set values
setExtent

Set the extent of a RasteLayer
xyValues

Extract values at xy coordinates
filename

Filename
rasterFromCells

Subset a raster by cell numbers
shift

Shift
resolution

Resolution
NAvalue

Set the NA value of a RasterLayer
KML

KML
Logic-methods

Logical operators and functions
initialize

Intitialize
linesToRaster

Lines to raster
polygonValues

Extract values from a RasterLayer by polygons
read

Read values from disk
stack

Create a RasterStack object
reclass

Reclassify
polygonsToRaster

Polygons to raster conversion
distance

Distance
Summary

Summary
indexing

Values from index and replacement