Learn R Programming

move (version 1.0)

coordinates: Extract the track coordinates from a Move/MoveStack object

Description

The coordinates method extracts the coordinates of a track.

Usage

## S3 method for class 'Move':
coordinates(obj,...)

Arguments

obj
A valid Move or MoveStack object
...
Additional arguments, see Details

Details

Returns a matrix with the coordinates of the track in a Move or MoveStack object.

Examples

Run this code
## create a move object
data <- move(system.file("extdata","leroy.csv.gz",package="move"))

## extract the coordinates
coords <- coordinates(data)
coordinates(moveStack(list(data,data)))

Run the code above in your browser using DataLab