dtt_floored: Floored

Description Usage Arguments Value Methods (by class) Examples

View source: R/floored.R

Description

Test whether a date time vector is floored.

Usage

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

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

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

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

Arguments

x

A Date, POSIXct or hms vector.

...

Unused.

units

A string of the time units to floor by.

Value

A flag indicating whether floored.

Methods (by class)

Examples

1
dtt_floored(as.Date("2002-02-01"))

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