Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


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

raster (version 1.6-16)

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

171,298

Version

1.6-16

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

November 10th, 2010

Functions in raster (1.6-16)

Logic-methods

Logical operators and functions
rasterizeObsolete

Vector to raster conversion
Compare-methods

Compare Raster* objects
dataType

Data type
cut

Convert values to classes
Arith-methods

Arithmic with Raster* objects
bands

Number of bands
extent

Extent
clump

Detect clumps
KML

Write a KML file
factors

Factors
freq

Frequency table
NAvalue

Set the NA value of a RasterLayer
coordinates

Coordinates
Summary-methods

Summary methods
rasterFromCells

Subset a raster by cell numbers
getValuesBlock

Get a block of raster cell values
distance

Distance
Math-methods

Mathematical functions
contour

Contour plot
filename

Filename
drawExtent

Draw extet
area

Size of cells
changeStack

Add or drop a layer
cellValues

Extract values for one or more cells / points
stack

Create a RasterStack object
click

Click on a map
alignExtent

Align an extent (object of class Extent)
crosstab

Cross-tabulate
Raster-class

Raster* classes
count

Count
edge

Edge detection
as.logical

Change values to logical
cellsFromExtent

Cells from Extent
adjacency

Adjacency
hist

Histogram
Function writing

Helper functions to use in new functions you develop
Extent-class

Class "Extent"
distanceFromPoints

Distance from points
worldFile

Header files
mask

Mask values in a Raster object
Options

Global options for the raster package
overlay

Overlay Raster objects
brick

Create a RasterBrick object
inifile

Read a .ini file
image

Image
rowFromCell

Row or column number from a cell number
round

Integer values
cellStats

Cell statistics
rasterTmpFile

Temporary files
flip

Flip
ncell

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

Pair plots
focalFilter

Focal filter
properties

Raster file properties
shift

Shift
dimensions

Dimensions of a Raster* object
intersectExtent

Extent intersection
aggregate

Aggregate
filledContour

Filled contour plot
mosaic

Merge RasterLayers using a function for overlapping areas
calc

Calculate
unstack

Unstack
trim

Trim
compare

Compare
crop

Crop
rasterToPolygons

Raster to polygons conversion
cover

Replace NA values with values of other layers
rasterToContour

Raster to contour lines conversion
blockSize

Block size for writing files
expand

Expand
datasource

Are values in memory and/or on disk?
draw

Draw a line or polygon
density

Density plot
polygonFromExtent

Polygon from Extent
rasterFromXYZ

Create a RasterLayer from x, y, z values
gridDistance

Grid distance
as.matrix

Get a matrix with raster cell values
projectRaster

Project a Raster object
Gain and offset

Gain and offset of values on file
indexing

Get or replace values of Raster objects
nlayers

Number of layers
predict

Spatial model predictions
quantile

Raster quantiles
subset

Subset layers in a Raster* object
stats

Miscellaneous statistical functions
rasterize

Rasterize points, lines, or polygons
writeHdr

Header files
nudgeExtent

Round extent coordinates
disaggregate

Disaggregate
writeFormats

File types for writing
which

Which cells are TRUE?
initialize

Intitialize
plot

Plot a Raster* object
SampleInt

Sample integer values
writeValues

Write values to a file
plotRGB

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

Obsolete functions
zoom

Zoom in on a plot
substitute

Substitute values in a RasterLayer
persp

Perspective plot
isLonLat

Is this longitude/latitude data?
projection

Get or set a projection
pointDistance

Distance between points
resample

Resample
merge

Merge RasterLayers
Summary

Summary
raster

Create a RasterLayer object
xyFromCell

Coordinates from a row, column or cell number
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
zonal

Zonal statistics
resolution

Resolution
rotate

Rotate
setValues

Set values of a Raster object
Sample

Random or regular sample
cellFrom

Get cell, row, or column number
interpolate

Interpolate
extension

Filename extensions
validCell

Validity of a cell, column or row number
getData

Get geographic data
plot3D

Interactive 3D plot of a RasterLayer
reclass

Reclassify
setExtent

Set the extent of a RasteLayer
setMinMax

Compute min and max values
focal

Focal
readAll

Read values from disk
rasterToPoints

Raster to points conversion
unionExtent

Extent union
clearValues

Clear values
direction

Direction
extremeValues

Minimum and maximum values
extract

Extract values from Raster objects
getValues

Get raster cell values
origin

Origin
raster-package

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

Save or open a RasterStack file
unique

Unique values
writeRaster

Write raster data to a file