Skip to contents

Adds a GPS column to a data frame by extracting timestamps from a reference ts object.

Usage

get_gps(df, ref.ts)

Arguments

df

A data.frame or tibble. The data to which the GPS time will be added.

ref.ts

A ts object. Reference time series from which GPS timestamps are extracted.

Value

A tibble identical to df but with an additional GPS column inserted after the time column.