dts_extrapolate: Extrapolation

View source: R/extrapolate.R

dts_extrapolateR Documentation

Extrapolation

Description

Fill in missing values by padding with the first or last non-missing value.

Usage

dts_extrapolate(
  x,
  dtt = "DateTime",
  colname = dts_colnames(x),
  max_span = .Machine$integer.max
)

Arguments

x

A dts data frame

dtt

A string specifying the column with the Date or POSIXct values.

colname

A character vector specifying the column(s) with the other values.

max_span

An integer of the maximum span to extrapolate.

Value

A data frame

Examples

dts_extrapolate(dts_data[2:6,])

poissonconsulting/dts documentation built on March 10, 2024, 6:21 a.m.