Skip to contents

Assign Epoch Start Time

Usage

assign_epoch_start_time(gps_data, epoch_length)

Arguments

gps_data

A data frame with GPS data including a column of timestamps and columns for latitude and longitude

epoch_length

The duration of an epoch in seconds

Value

A data frame of GPS data with an additional column indicating epoch start time

Details

Selects the closest 30 second increment to assign epoch start time and takes the GPS coordinates associated with the latest time if there are multiple GPS data points in a given 30 second increment. This function returns a data frame of GPS data with a column of epoch times.