make_monthly: Coarsen a date to monthly resolution

Description Usage Arguments Value Examples

View source: R/convenience.r

Description

Coarsen a date to monthly resolution

Usage

1

Arguments

x

A date vector

Value

A date vector of the same length, with the day-of-month always 1

Examples

1
2
make_monthly(as.Date(c("2000-01-01", "2000-01-02")))
#> [1] "2000-01-01" "2000-01-01"

karldw/kdw.junk documentation built on Sept. 8, 2021, 9:30 p.m.