date_truncate: Truncate a date

Description Usage Arguments Value

View source: R/date_truncate.R

Description

Truncate a date to the level of a year, quarter or month in the style of SQL date truncation

Usage

1
date_truncate(date_object, level = c("month", "quarter", "year"))

Arguments

date_object

A date vector

level

One of "year", "quarter" or "month", indicating the level to which the dates should be truncated

Value

A Date vector of identical length to the input containing the truncated dates


joebrew/vilaweb documentation built on Sept. 11, 2020, 3:42 a.m.