hotMoveStats: hotMoveStats

Description Usage Arguments Details Value See Also Examples

View source: R/hotMoveStats.R

Description

Segmentation and statistical analysis of the time spent by an animal within a geographical region.

Usage

1
hotMoveStats(x, y, z)

Arguments

x

Region unique identifiers. Vector of class numeric.

y

Observation time. Object of class Date.

z

Individual identifier. Vector of class character.

Details

For each unique region defined by x, the function identifies unique temporal segments defined as periods of consecutive days with observations. Then, for each region, the function uses the identified segments to report on the minimum, maximum and mean time spent as well as the total amount of time spent within the region. Moreover, the function provides a detailed report of each segment and informs on the corresponding sample indices. If z is specified, the function will in addition count the number of individuals found within each region and within each temporal segment. The final output consists of:

Value

A list.

See Also

hotMove

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
{

require(raster)

# reference data
data(longMove)

# extract regions
hm <- hotMove(longMove, 0.1)

# add new information to original shapefile
longMove@data <- cbind(longMove@data, hm$region.id)

# derive statistics
hm.region.stats <- hotMoveStats(hm$region.id, as.Date(longMove@data$timestamp))

}

rsMove documentation built on July 1, 2020, 6:02 p.m.