spline_timestamp_sync {PVplr}R Documentation

Spline columns to match timestamps.

Description

Often timestamps of two data frames will be mismatched. To produced matching timestamps, columns that may be splined will be and then corresponding values at the 'correct' timestamp are used.

Usage

spline_timestamp_sync(
  data,
  data_ts = "timestamp",
  merge_data,
  merge_ts = "timestamp"
)

Arguments

data

A data frame with a correct timestamp column.

data_ts

The column name for the data timestamp. Defaults to 'timestamp'

merge_data

A data frame that will be linearly interpolated and merged with data.

merge_ts

The column name for the merge_data timestamp. Defaults to 'timestamp'.

Details

Any value that can not be linearly interpolated such as a string will remain the same.

Value

The resulting merged data frame.

Author(s)

Arash Khalilnejad


[Package PVplr version 0.1.2 Index]