Learn R Programming

move (version 1.0)

subset-method: Returns a single object from a MoveStack

Description

The subset function can be used to return a single Move object from a MoveStack object.

Usage

## S3 method for class 'MoveStack,ANY,ANY':
[(x,i)

Arguments

x
MoveStack object
i
numeric, number of position in the stack

Examples

Run this code
load(system.file("extdata", "move.RData", package="move"), .GlobalEnv)
st <- moveStack(list(leroy,ricky))
st[1]

Run the code above in your browser using DataLab