time_of_day | R Documentation |
A convenience wrapper around suncalc::getSunlightTimes
to annotate if a fix was taken during day or night (optionally also include dawn and dusk).
time_of_day(x, ...)
## S3 method for class 'track_xyt'
time_of_day(x, include.crepuscule = FALSE, ...)
## S3 method for class 'steps_xyt'
time_of_day(x, include.crepuscule = FALSE, where = "end", ...)
x |
|
... |
Further arguments, none implemented. |
include.crepuscule |
|
where |
|
A tibble
with an additional column tod_
that contains the time of the day for each relocation.
data(deer)
deer |> time_of_day()
deer |> steps_by_burst() |> time_of_day()
deer |> steps_by_burst() |> time_of_day(where = "start")
deer |> steps_by_burst() |> time_of_day(where = "end")
deer |> steps_by_burst() |> time_of_day(where = "both")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.