ts_inflate | R Documentation |
Shifts known values to the nearest equidistant timestamp and fills in any
missing timestamps with NA values. An additional binary column named
<column to impute>_imp
is added where 1 represents an unknown value
and zero represents a known value.
ts_inflate(data, ts_col, col_to_imp, dt)
data |
A data frame containing columns |
ts_col |
The name of the timestamp column. |
col_to_imp |
The name of the column to impute. |
dt |
The expected time between consecutive timestamps, in minutes. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.