timestamps

0th

Percentile

Extract or set the timestamps of a Move or MoveStack object

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

Usage
# S4 method for .MoveTrackSingle
timestamps(this)
  # S4 method for .MoveTrack
timestamps(this)
  # S4 method for .MoveTrack
timestamps(this) <- value
Arguments
this

move, moveStack, moveBurst, .unUsedRecords or .unUsedRecordsStack object

value

timestamps from class POSIXct

Value

vector of class POSIXct. Note that for moveStacks a single string is returned without spliting by individual (see 'Examples').

Aliases
  • timestamps
  • timestamps<-
  • timestamps,.MoveTrack-method
  • timestamps,.unUsedRecords-method
  • timestamps,.MoveTrackSingle-method
  • timestamps<-,.MoveTrack-method
Examples
# NOT RUN {
data(leroy)
data(fishers)

## get the timestamps from a Move object
head(timestamps(leroy)) 
## get the timestamps from a MoveStack object
head(timestamps(fishers)) 
## get the timestamps from a unUsedRecords object
head(timestamps(unUsedRecords(leroy)))  

## get timestamps separatly for each individual from a MoveStack 
str(lapply(split(fishers), timestamps))

## change the timestamps and set it for a Move object
timestamps(leroy) <- timestamps(leroy)+60 
## change the timestamps and set it for a MoveStack object
timestamps(fishers) <- timestamps(fishers)+60.1
# }
Documentation reproduced from package move, version 3.1.0, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.