Learn R Programming

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

raster (version 1.0.0-1)

Geographic analysis and modeling with raster data

Description

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

Copy Link

Version

Install

install.packages('raster')

Monthly Downloads

153,616

Version

1.0.0-1

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

March 20th, 2010

Functions in raster (1.0.0-1)

extremeValues

Minimum and maximum values
hist

Histogram
isLonLat

Is this longitude/latitude data?
cellFrom

Get cell, row, or column number
rasterToPoints

Raster to points conversion
Extent-class

Class "Extent"
Compare-methods

Compare Raster* objects
pairs

Pair plots
Raster-class

Raster* classes
pointDistance

Distance between points
worldFile

Header files
NAvalue

Set the NA value of a RasterLayer
KML

KML
crosstab

Cross-tabulate
values

Get raster values
copyRasterFile

Copy or move a raster file
Logic-methods

Logical operators and functions
area

Size of cells
Math-methods

Mathematical functions
cellsFromExtent

Cells from Extent
dimensions

Dimensions of a Raster* object
edge

Edge detection
draw

Draw a line or polygon
cover

Cover
distance

Distance
bands

Bands
interpolate

Interpolate
polygonsToRaster

Polygons to raster conversion
disaggregate

Disaggregate
polygonFromExtent

Polygon from Extent
focal

Focal
extent

Extent
mask

mask
nudgeExtent

Round extent coordinates
pointsToRaster

Point to raster conversion
Sample

Random or regular sample
density

Density plot
rowFromCell

Row or column number from a cell number
rasterTmpFile

Temporary files
as.logical

as.logical
Options

Global options for the raster package
validCell

Validity of a cell, column or row number
aggregate

Aggregate
contour

Contour plot
raster-package

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

Click
image

Image
inifile

Read a .ini file
resample

Resample
predict

Spatial model predictions
dataProperties

Data properties
extension

Filename extensions
drawExtent

Draw extet
nlayers

Layers
unionExtent

Extent union
zonal

Zonal statistics
trim

Trim
origin

Origin
changeStack

Add or drop a layer
setProjection

projection
flip

Flip
alignExtent

Align an extent (object of class Extent)
linesToRaster

Lines to raster
intersectExtent

Extent intersection
stack

Create a RasterStack object
setMinMax

Compute min and max values
initialize

Intitialize
dataType

Data type
setValues

Set values
properties

Raster file properties
stats

Miscellaneous statistical functions
unstack

Unstack
freq

Frequency table
coordinates

Coordinates
Summary-methods

Summary methods
indexing

Values from index and replacement
rotate

Rotate
gridDistance

Grid distance
saveAs

Save a Raster* object to a new file
unique

Unique values
expand

Expand
shift

Shift
getData

Get geographic data
substitute

Substitute values in a RasterLayer
clump

Detect clumps
SampleInt

Sample integer values
writeRasterHdr

Header files
which

Which cells are TRUE?
raster

Create a RasterLayer object
rasterFromCells

Subset a raster by cell numbers
getValues

Get raster cell values
factors

Factors
filename

Filename
compare

Compare
brick

Create a Rasterbrick object
xyValues

Extract values at xy coordinates
xyFromCell

Coordinates from a row, column or cell number
setExtent

Set the extent of a RasteLayer
focalValues

Extract focal values
adjacency

Adjacency
cellValues

Extract values for one or more cells
direction

Direction
merge

Merge RasterLayers
Function writing

Helper functions to use in new functions you develop
writeRaster

Write raster data to a file
focalFilter

Focal filter
writeFormats

File types for writing
resolution

Resolution
persp

Perspective plot
plot

Plot a Raster* object
read

Read values from disk
getValuesBlock

Get raster cell values
cellStats

Cell statistics
count

Count
overlay

Overlay
crop

Crop
saverasterstack

Save or open a RasterStack file
distanceFromPoints

Distance from points
plot3D

Interative 3D plot of a RasterLayer
reclass

Reclassify
Arith-methods

Arithmic with rasters
round

Integer values
projectRaster

project a RasterLayer
zoom

Zoom in on a plot
writeValues

Write values to a file
calc

Calculate
polygonValues

Extract values from a RasterLayer by polygons
Summary

Summary
rasterToContour

Raster to contour lines conversion