add_clock_time: Add clock times to a data frame of nodes

Description Usage Arguments Value

View source: R/extract-helpers.R

Description

The segment and block nodes only have startTime and endTime attributes that indicate the time since the beginning of the corresponding recording (in seconds). This function takes a data frame with recording information and adds the corresponding clock time (UTC) and local time (adjusted for timezone). Note that the local time is correctly adjusted but still stored with timezone "UTC". See as_local_time for more information.

Usage

1
add_clock_time(df, df_rec)

Arguments

df

A data frame created by one of the gather functions. Must contain a startTime and endTime column that contain the seconds since the start of the recording.

Value

A data frame with startClockTime, endClockTime, startClockTimeLocal, and endClockTimeLocal columns for each recording.


HomeBankCode/DarcleITS documentation built on April 14, 2020, 9:48 a.m.