resample: Resample maps in ExpVarRasterList object or list

Description Usage Arguments Value See Also Examples

Description

A wrapper function for raster::resample to resample raster objects in an ExpVarRasterList object or list.

Usage

1
2
3
4
5
## S4 method for signature 'ExpVarRasterList,Raster'
resample(x, y, method = "ngb", ...)

## S4 method for signature 'list,Raster'
resample(x, y, method = "ngb", ...)

Arguments

x

an ExpVarRasterList object or list of Raster* maps to be resampled

y

Raster* object with parameters that x should be resampled to

method

method used to compute values for the new RasterLayer, should be "bilinear" for bilinear interpolation, or "ngb" for nearest neighbour

...

additional arguments to raster::resample

Value

An ExpVarRasterList object or list, depending on x.

See Also

ExpVarRasterList, raster::resample

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 

## Plum Island Ecosystems

## observed data
obs <- ObsLulcRasterStack(x=pie,
                    pattern="lu",
                    categories=c(1,2,3),
                    labels=c("forest","built","other"),
                    t=c(0,6,14))

## explanatory variables
ef <- ExpVarRasterList(x=pie, pattern="ef")

## resample to ensure maps have same characteristics as observed maps
ef <- resample(x=ef, y=obs, method="ngb")


## End(Not run)

lulcc documentation built on May 1, 2019, 7:05 p.m.