fill_dates: Fill Implicitly Missing Dates in a Time-Indexed Data Frame

fill_datesR Documentation

Fill Implicitly Missing Dates in a Time-Indexed Data Frame

Description

fill_date() finds implicitly missing observations in a time-indexed data frame and fills them with fill_na. start and end values can be supplied to fill dates outside the range of the data.

Usage

fill_dates(data, date_col, start = NULL, end = NULL, fill_na = NA)

Arguments

data

A data frame or data frame extension (e.g. a tibble)

date_col

The column to use as the time index

start

An optional start date for the period to fill

end

An optional end date for the period to fill

fill_na

The value to use when creating observations for implicitly missing data

Value

A tibble


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.