dts_fill_dayte: Fill Date or POSIXct of the Year

View source: R/fill-dayte.R

dts_fill_dayteR Documentation

Fill Date or POSIXct of the Year

Description

Fills in missing values based on Date or DateTime of year.

Usage

dts_fill_dayte(
  x,
  dtt = "DateTime",
  colname = dts_colnames(x),
  min_gap = 0L,
  min_n = 1L,
  feb29_to_28 = TRUE,
  .dts_fun = mean_na_rm,
  ...
)

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.

min_gap

An integer of the minimum gap to leave between existing values.

min_n

A count of the minimum of data points to require.

feb29_to_28

A flag indicating whether to treat February 29th as if it is February 28th.

.dts_fun

A function which returns a scalar.

...

Optional Additional arguments passed to .dts_fun.

Value

A data frame


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