dts_interpolate: Interpolate

View source: R/interpolate.R

dts_interpolateR Documentation

Interpolate

Description

Fill in missing values by linear interpolation.

Usage

dts_interpolate(
  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 interpolate. left- and right- continuous step function.

Value

A data frame

Examples

dts_interpolate(dts_data[1:5,])

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