ts_inflate {PVplr}R Documentation

Inflate a time series data set.

Description

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.

Usage

ts_inflate(data, ts_col, col_to_imp, dt)

Arguments

data

A data frame containing columns ts_col and col_to_imp.

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.


[Package PVplr version 0.1.2 Index]