Learn R Programming

move (version 2.1.0)

subset-method: Returns a single object from a MoveStack

Description

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

Usage

# S4 method for MoveStack,ANY,ANY
[(x,i)
  # S4 method for 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.

Examples

Run this code
# NOT RUN {
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)]]
# }

Run the code above in your browser using DataLab