cutStack {remote} | R Documentation |
Shorten a RasterStack
Description
The function cuts a specified number of layers off a RrasterStack in order to create lagged RasterStacks.
Usage
cutStack(x, tail = TRUE, n = NULL)
Arguments
x |
a RasterStack |
tail |
logical. If |
n |
the number of layers to take away. |
Value
a RasterStack shortened by n
layers either from the
beginning or the end, depending on the specification of tail
Examples
data(australiaGPCP)
# 6 layers from the beginning
cutStack(australiaGPCP, tail = FALSE, n = 6)
# 8 layers from the end
cutStack(australiaGPCP, tail = TRUE, n = 8)
[Package remote version 1.2.1 Index]