Learn R Programming

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

terra (version 0.6-8)

Spatial Data Analysis

Description

Methods for spatial data analysis, especially raster data. Methods allow for low-level data manipulation as well as high-level global, local, zonal, and focal computation. The predict and interpolate methods facilitate the use of regression type (interpolation, machine learning) models for spatial prediction. Processing of very large files is supported. See the manual and tutorials on to get started. The package is similar to the 'raster' package; but it is simpler and faster.

Copy Link

Version

Install

install.packages('terra')

Monthly Downloads

185,852

Version

0.6-8

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

May 17th, 2020

Functions in terra (0.6-8)

coerce

Coercion to other object types
crop

Cut out a geographic subset
flip

Flip a raster
collapse

Collapse cell values from a multi-layer SpatRaster
atan2

Two argument arc-tangent
cover

Cover (replace) NA values with values of another raster
dimensions

Dimensions of a SpatRaster or SpatVector
diff

diff
classify

Classify (or reclassify) cell values
interpolate

Interpolate
factors

Factors
click

Query by clicking on a map
ifel

ifelse for SpatRaster objects
draw

Draw a polygon, line, extent, or points
boundaries

Detect boundaries (edges)
isLonLat

Check for longitude/latitude crs
SpatRaster-class

SpatRaster class
buffer

Create a buffer around vector objects or raster patches
pairs

Pairs plot (matrix of scatterplots)
c

Combine
pack

pack a Spat* object
focal

Focal values
distance

Geographic distance
crs

Get or set a coordinate reference system (projection)
disaggregate

Disaggregate raster cells
initialize

Initialize a SpatRaster with values
clamp

Clamp values
gdal_info

GDALinfo
density

Density plot
SpatDataFrame-class

C++ classes
vector-attributes

Get or replace attribute values of a SpatVector
project

Change the coordinate reference system
extend

Extend
quantile

SpatRaster local quantiles
compareGeom

Compare geometries of SpatRaster objects
geom

Get the geometry (coordinates) of a SpatVector
geomtype

Geometry type of a SpatVector
freq

Frequency table
rotate

Rotate a SpatRaster along longitude
spatSample

Take a regular sample
vect

Create SpatVector objects
resample

Transfer values of a SpatRaster to another one with a different geometry
contour

Contour plot
select

Geometric subsetting
shift

Shift
writeRaster

Write raster data to a file
SpatOptions-class

Inspect of set general options for "terra"
extract

Extract values from a SpatRaster
terra-package

The "terra" package
global

global statistics
extent

Create, get or set a SpatExtent
writeVector

Write vector data to a file
overlay

Overlay SpatRaster objects
mask

Mask values in a SpatRaster
names

Names of Spat objects
head and tail

Show the head or tail of a Spat* object
range

Get or compute the minimum and maximum cell values
local

Local statistics
read and write

Read from, or write to, file
transpose

Transpose
rep

Combine
slope

Compute slopes
modal

modal value
xmin

Get or set single values of an extent
hist

Histogram
sources

Data sources of a SpatRaster
plotRGB

Red-Green-Blue plot of a multi-layered SpatRaster
trim

Trim a SpatRaster
zoom

Zoom in on a map
xyRowColCell

Coordinates from a row, column or cell number and vice versa
zonal

Zonal statistics
merge

Merge SpatRaster or SpatExtent objects, or a SpatVector with a data.frame
math

Arithmetic, logical and general mathematical methods
predict

Spatial model predictions
plot

Plot a SpatRaster or SpatVector
persp

Perspective plot
Summary

Summary
tapp

Apply a function to subsets of layers of a SpatRaster
subset-vector

Subset of a SpatVector
rasterize

Rasterize vector data
rast

Create a SpatRaster
tmpFiles

Temporary files
subset

Subset of a SpatRaster
unique

Unique values
text

Add labels to a map
values

Get cell values
aggregate

Aggregate raster cells
SpatVector-class

Class "SpatVector"
align

Align a SpatExtent with a SpatRaster
adjacent

Adjacent cells
as.data.frame

Get the attributes of a SpatVector
as.character

Create a text representation of (the skeleton of) an object
SpatExtent-class

Class "SpatExtent"
area

Area and perimeter
app

Apply a function to the cells of a SpatRaster