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

# 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 splitting by individual (see 'Examples').

Author

Marco Smolla & Anne Scharf

Examples

data(leroy) data(fishers) ## get the timestamps from a Move object head(timestamps(leroy))
#> [1] "2009-02-11 12:16:45 UTC" "2009-02-11 12:31:38 UTC" #> [3] "2009-02-11 12:45:48 UTC" "2009-02-11 13:00:16 UTC" #> [5] "2009-02-11 13:15:19 UTC" "2009-02-11 13:30:13 UTC"
## get the timestamps from a MoveStack object head(timestamps(fishers))
#> [1] "2009-02-11 12:16:45 UTC" "2009-02-11 12:31:38 UTC" #> [3] "2009-02-11 12:45:48 UTC" "2009-02-11 13:00:16 UTC" #> [5] "2009-02-11 13:15:19 UTC" "2009-02-11 13:30:13 UTC"
## get the timestamps from a unUsedRecords object head(timestamps(unUsedRecords(leroy)))
#> [1] "2009-02-11 00:00:01 UTC" "2009-02-11 00:15:01 UTC" #> [3] "2009-02-11 00:30:01 UTC" "2009-02-11 00:45:01 UTC" #> [5] "2009-02-11 01:00:01 UTC" "2009-02-11 01:15:01 UTC"
## get timestamps separatly for each individual from a MoveStack str(lapply(split(fishers), timestamps))
#> List of 2 #> $ Leroy : POSIXct[1:919], format: "2009-02-11 12:16:45" "2009-02-11 12:31:38" ... #> $ Ricky.T: POSIXct[1:1000], format: "2010-02-09 17:01:23" "2010-02-09 17:28:56" ...
## 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