Skip to contents

This function adjusts the time in fed_df dataset using a linear model trained on data coming from FEDWatcher (where Pi_Time is not NA). You can use this function even if fed_df and fw_df do not fully overlap in time.

Usage

use_pi_time(fed_df, fw_df)

Arguments

fed_df

A data frame, the result of fed3::read_fed(...).

fw_df

A data frame, the result of fed3::read_fed(..., lib_version = "fw").

Value

A data frame identical to fed_df but with Pi_Time adjusted based on the linear model trained on fw_df.

Examples

if (FALSE) { # \dontrun{
fed_df <- fed3::read_fed(...)
fw_df <- fed3::read_fed(..., lib_version = "fw")
fed_df_adjusted <- use_pi_time(fed_df, fw_df)
} # }