add_times | R Documentation |
Add time (in seconds since tagon and perhaps as datetimes in UTC and/or local timezone) to a tibble or data-frame with regularly sampled data
add_times(x, sampling_rate, start_offset = 0, add_utc_time = FALSE, tagon_time)
x |
input data: sensor data structure, vector, matrix, tibble, or data frame. If |
sampling_rate |
sampling rate of x in Hz (required if x is not a sensor data structure, and ignored if it is) |
start_offset |
time (in seconds) between start of tag recording and the first recorded sample. Ignored (and pulled from metadata) if |
add_utc_time |
Logical: should UTC time column be added? Default is FALSE. |
tagon_time |
string giving the tag recording start time. Can be found in tag_dataset$info$dephist_device_datetime_start. Format: day month year hours minutes seconds. Required if |
A data.frame with the data (one row per sample) and column sec_since_tagon with times in seconds since start of tag recording. Optionally, also includes column utc_time.
# Examples will go here
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.