date_yh {framecleaner} | R Documentation |
date_yh
Description
creates a semesterly date vector from a date vector
Usage
date_yh(x)
Arguments
x |
a date |
Value
date vector
Examples
seq.Date(lubridate::ymd(20200101), lubridate::ymd(20220101), length.out = 10) -> d1
d1 %>%
tibble::enframe() %>%
dplyr::mutate(YH = date_yh(value))
[Package framecleaner version 0.2.1 Index]