dtt_floor: Floor

Description Usage Arguments Value Methods (by class) Examples

View source: R/floor.R

Description

Floors a date/time vector

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
dtt_floor(x, units, ...)

## S3 method for class 'Date'
dtt_floor(x, units = "days", ...)

## S3 method for class 'POSIXct'
dtt_floor(x, units = "seconds", ...)

## S3 method for class 'hms'
dtt_floor(x, units = "seconds", ...)

Arguments

x

A date/time vector.

units

A string of the units to floor by.

...

Unused.

Value

The floored date/time vector.

Methods (by class)

Examples

1
dtt_floor(hms::as_hms("23:59:59"), "hours")

dttr2 documentation built on July 10, 2020, 5:06 p.m.