Subset data by time and perform a linear regression.
This is an internal function. Used with time_roll()
and auto_rate()
.
time_lm(df, start, end)
df
: data.frame object.start
: numeric. start timeend
: numeric. end timea data.table object
Useful links