floor_decade: The beginning (floor) of the decade

View source: R/instants.R

floor_decadeR Documentation

The beginning (floor) of the decade

Description

The beginning (floor) of the decade

Usage

floor_decade(x)

Arguments

x

a POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, or fts object.

Value

the beginning of the decade as a Date object

Examples

floor_decade("2017-10-22 15:01:00")

ellisvalentiner/lubridateExtras documentation built on March 31, 2022, 8:52 a.m.