interpolate_time_series: Interpolate values within a time series

View source: R/interpolate_time_series.R

interpolate_time_seriesR Documentation

Interpolate values within a time series

Description

This function is typically used to increase the resolution of time series data e.g hourly to minute. All numeric variables within the data will be interpolated. Character or factor variables are filled down.

Usage

interpolate_time_series(df, by = "hour")

Arguments

df

Input data frame or tibble

by

Increment of the new time series. Options are 'year', 'month', 'day', 'hour', 'min', or 'sec'

Value

Tibble

Author(s)

Shona Wilde


shonawilde/shonarrr documentation built on Jan. 29, 2025, 1:27 a.m.