Learn R Programming

move (version 3.2.2)

UDStack: Creating UDStack objects

Description

The function enables the easy generation of .UDStacks, which is for example useful for using other UD function such as getVolumeUD.

Usage

UDStack(x,...)

Arguments

x

A list of rasters, a rasterBrick, a rasterStack or a DBBMMBurstStack object that needs to be converted to a .UDStack object.

...

Currently not used

Value

An UDStack object

Details

The values of a DBBMMBurstStack are standardized per raster layer.

Examples

Run this code
# NOT RUN {
data(dbbmmstack)
stk<-as(dbbmmstack,"RasterStack")
UDStack(stk)
lst<-split(dbbmmstack)
UDStack(lst)

## transforming a DBBMMBurstStack into UDStack, e.g. to than 
## use the "getVolumeUD" or "emd" function
data(leroy)
leroyB <- burst(x=leroy,f=c(rep(c("Behav.1","Behav.2"),each=400),rep("Behav.1", 118)))
leroyBdbb <- brownian.bridge.dyn(object=spTransform(leroyB[785:820], center=TRUE), 
                                 location.error=12, dimSize=115, ext=.45, 
                                 time.step=25/15, margin=15)
cellStats(leroyBdbb, sum)
leroyBud <- UDStack(leroyBdbb)
cellStats(leroyBud, sum)
# }

Run the code above in your browser using DataLab