Learn R Programming

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

raster (version 1.3-1)

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

164,948

Version

1.3-1

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

July 24th, 2010

Functions in raster (1.3-1)

Raster-class

Raster* classes
alignExtent

Align an extent (object of class Extent)
density

Density plot
compare

Compare
coordinates

Coordinates
SampleInt

Sample integer values
dimensions

Dimensions of a Raster* object
disaggregate

Disaggregate
plotRGB

Red-Green-Blue plot of RasterLayers
Summary

Summary
plot3D

Interactive 3D plot of a RasterLayer
unstack

Unstack
worldFile

Header files
mosaic

mosaic RasterLayers
cellFrom

Get cell, row, or column number
Arith-methods

Arithmic with rasters
brick

Create a RasterBrick object
rowFromCell

Row or column number from a cell number
resample

Resample
rasterFromCells

Subset a raster by cell numbers
trim

Trim
KML

KML
getValues

Get raster cell values
dataType

Data type
contour

Contour plot
image

Image
zoom

Zoom in on a plot
projectRaster

project a RasterLayer
which

Which cells are TRUE?
focalFilter

Focal filter
writeValues

Write values to a file
calc

Calculate
rotate

Rotate
filledContour

Filled contour plot
getData

Get geographic data
merge

Merge RasterLayers
validCell

Validity of a cell, column or row number
hist

Histogram
rasterFromXYZ

Create a RasterLayer from x, y, z values
pointsToRaster

Point to raster conversion
gridSample

Stratified regular sample on a grid
filename

Filename
adjacency

Adjacency
mask

mask
focalValues

Extract focal values
polygonValues

Extract values from a RasterLayer by polygons
nlayers

Layers
focal

Focal
linesToRaster

Lines to raster
rasterToPolygons

Raster to polygons conversion
cellStats

Cell statistics
distanceFromPoints

Distance from points
rasterToPoints

Raster to points conversion
clump

Detect clumps
bands

Bands
rasterTmpFile

Temporary files
unionExtent

Extent union
writeRaster

Write raster data to a file
zonal

Zonal statistics
setExtent

Set the extent of a RasteLayer
flip

Flip
Sample

Random or regular sample
click

Click
intersectExtent

Extent intersection
overlay

Overlay
edge

Edge detection
extension

Filename extensions
unique

Unique values
cellsFromExtent

Cells from Extent
changeStack

Add or drop a layer
Logic-methods

Logical operators and functions
read

Read values from disk
Options

Global options for the raster package
crosstab

Cross-tabulate
area

Size of cells
cellValues

Extract values for one or more cells
data

Are values in memory and/or on disk?
properties

Raster file properties
gridDistance

Grid distance
plot

Plot a Raster* object
resolution

Resolution
factors

Factors
Math-methods

Mathematical functions
aggregate

Aggregate
rasterToContour

Raster to contour lines conversion
stats

Miscellaneous statistical functions
initialize

Intitialize
as.logical

Change values to logical
extent

Extent
nudgeExtent

Round extent coordinates
inifile

Read a .ini file
values

Get raster values
Function writing

Helper functions to use in new functions you develop
setMinMax

Compute min and max values
copyRasterFile

Copy or move a raster file
crop

Crop
setValues

Set values
expand

Expand
getValuesBlock

Get raster cell values
interpolate

Interpolate
distance

Distance
quantile

RasterLayer quantiles
predict

Spatial model predictions
xyValues

Extract values at xy coordinates
writeFormats

File types for writing
writeRasterHdr

Header files
draw

Draw a line or polygon
polygonFromExtent

Polygon from Extent
Extent-class

Class "Extent"
count

Count
origin

Origin
shift

Shift
substitute

Substitute values in a RasterLayer
pointDistance

Distance between points
isLonLat

Is this longitude/latitude data?
NAvalue

Set the NA value of a RasterLayer
indexing

Values from index and replacement
reclass

Reclassify
freq

Frequency table
drawExtent

Draw extet
polygonsToRaster

Polygons to raster conversion
persp

Perspective plot
direction

Direction
pairs

Pair plots
raster

Create a RasterLayer object
stack

Create a RasterStack object
projection

projection
extremeValues

Minimum and maximum values
raster-package

Management, analysis and modeling of raster-type geographic data
Summary-methods

Summary methods
round

Integer values
Compare-methods

Compare Raster* objects
saverasterstack

Save or open a RasterStack file
xyFromCell

Coordinates from a row, column or cell number
cover

Cover