pad: Pad data

View source: R/pad.R

padR Documentation

Pad data

Description

Function to pad out missing time points

Usage

pad(data, start_date = NULL, end_date = NULL, drop_last = FALSE)

pad_serie(serie, start_date = NULL, end_date = NULL, drop_last = FALSE)

Arguments

data

tibble in rOstluft long format

start_date

optional start date for padding. Default min date in series

end_date

optional end date for padding. Default max date in series

drop_last

optional drop the last added time point by padding. Useful when resampling and end_date is the first time point of the new interval

serie

a tibble in rOstluft long format containing exactly one serie

Value

tibble with padded data


Ostluft/rOstluft documentation built on Feb. 6, 2024, 1:26 a.m.