timestamps | R Documentation |
The timestamps method returns or sets the timestamps of a track from a Move or MoveStack object.
## S4 method for signature '.MoveTrackSingle'
timestamps(this)
## S4 method for signature '.MoveTrack'
timestamps(this)
## S4 replacement method for signature '.MoveTrack'
timestamps(this) <- value
this |
|
value |
timestamps from class POSIXct |
vector of class POSIXct
.
Note that for moveStacks a single string is returned without splitting by individual (see 'Examples').
Marco Smolla & Anne Scharf
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.