Returns a single object from a MoveStack

Share:

Description

The subset function can be used to return a subset of a Move(Stack) object.

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

MoveStack 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 stack to a single move object according to the individual name or return a stack of multiple individuals.

Author(s)

Bart Kranstauber

Examples

1
2
3
4
5
6
7
8
9
data(leroy)
leroy[1:20,]
leroy[c(TRUE,FALSE),]
data(fishers)
fishers[1:300,]
fishers[1]
fishers[['Ricky.T']]
fishers[[2]]
fishers[[c(TRUE,FALSE)]]

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.