Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

crop-RasterArray-method

Crop a RasterArray object


Description

The method is inherited from the RasterStack class.

Usage

## S4 method for signature 'RasterArray'
crop(x, y, ...)

Arguments

x

a RasterArray class object.

y

an xtent object, or any object from which an Extent object can be extracted (see Details)

...

arguments passed to the crop function.

Value

A cropped RasterArray class object.

Examples

data(dems)
# crop to Australia
ext <- extent(c(                
  xmin = 106.58,
  xmax = 157.82,
  ymin = -45.23,
  ymax = 1.14 
)) 
# cropping all DEMS (Australia drifted in)
au<- crop(dems, ext)

chronosphere

Earth System History Variables

v0.4.1
CC BY 4.0
Authors
Adam T. Kocsis, Nussaibah B. Raja
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.