Learn R Programming

move (version 1.0)

timestamps: Extract the timestamps of a Move or MoveStack object

Description

The timestamps method returns or sets the timestamps of a track from a Move or MovesStack object.

Usage

## S3 method for class '.MoveTrackSingle':
timestamps(this)
## S3 method for class '.MoveTrack':
timestamps(this)
## S3 method for class '.MoveTrack':
timestamps(this) <- value

Arguments

this
Move or MoveStack object
value
timestamps from class POSIXct

Examples

Run this code
load(system.file("extdata", "move.RData", package="move"), .GlobalEnv)
  stack <- moveStack(list(leroy,leroy))
  
  timestamps(leroy) #get the timestamps from a Move object
  timestamps(stack) #get the timestamps from a MoveStack object
  timestamps(leroy) <- timestamps(leroy)+60 #change the timestamps and set it for a Move object
  timestamps(stack) <- timestamps(stack)+60 #change the timestamps and set it for a MoveStack object

Run the code above in your browser using DataLab