extract-Pimage: Extract parts of Pimage.

[.PimageR Documentation

Extract parts of Pimage.

Description

Extraction with "[" can be done in the usual ways by numeric or integer indexes, the result is returned as a raster. There is no replacement method, attemping to do so is an error.

Usage

## S3 method for class 'Pimage'
x[i, j, drop = TRUE, ...]

Arguments

x

Pimage object

i

numeric or logical vector

j

ignored

drop

ignored

...

ignored

Details

Use [[.Pimage to extract a single time step, and subset.Pimage to extract multiple elements without coercion to Raster.

Value

RasterLayer, or Pimage, see Details

See Also

cut.Pimage for creating temporal partitions.


SWotherspoon/SGAT documentation built on June 1, 2022, 10:49 p.m.