subset: Subset movement tracks

Description Usage Arguments Details Value Author(s) Examples

Description

Extraction of a subset of locations or individuals from a movement track.

Usage

1
2
3
4
  ## S4 method for signature 'MoveStack,ANY,ANY'
x[i]
  ## S4 method for signature 'MoveStack,character,missing'
x[[i]]

Arguments

x

a move, moveStack, moveBurst, DBBMM, DBBMMStack, DBBMMBurstStack, dynBGB, dBMvariance, dBMvarianceBurst, dBMvarianceStack or dBGBvariance object

i

numeric, character or logical vector for individuals in a stack or a set of locations

Details

The double square bracket method is used for sub setting a moveStack to a single move object according to the individual name or return a stack of multiple individuals.

Value

same object class as the input containing the selected locations or individuals

Author(s)

Bart Kranstauber & Anne Scharf

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## subseting a Move, MoveBurst, DBBMM, dBMvariance, dBMvarianceBurst, 
## dBMvarianceStack or dBGBvariance object by locations
data(leroy)
leroy[1:20,] # subset to selected range of coordinates of a move objects
leroy[c(1,10,20),] # subset to selected coordinates of a move objects
leroy[c(TRUE,FALSE),] # subset to every second location
leroy[c(TRUE,FALSE,FALSE),] # subset to every third location

## subseting a moveStack, DBBMMStack or DBBMMBurstStack object, 
## by locations 
data(fishers)
# subset to selected range of coordinates of a moveStack objects. If the first individual contains
# more than, in this case 300, locations, only locations of the fist individual will be returned
fishers[1:300,] 
fishers[1] # returns first location of first individual

## or individuals
fishers[['Ricky.T']] # returns move object of named individual
fishers[[c('Leroy','Ricky.T')]] # returns subseted moveStack only with the named individual
fishers[[2]] # returns move object of 2nd individual
fishers[[c(1,2)]]# returns subseted moveStack only with the selected individual

fishers[[c(TRUE,FALSE)]] # returnes move or moveStack object with those individuals that are 'TRUE'

move documentation built on Aug. 24, 2017, 1:04 a.m.