dts_floor: Floors the Date or POSIXct column of a date time series data...

View source: R/floor.R

dts_floorR Documentation

Floors the Date or POSIXct column of a date time series data frame.

Description

Floors the Date or POSIXct column of a date time series data frame.

Usage

dts_floor(x, dtt = "DateTime", units = dttr2::dtt_units(x[[dtt]]))

Arguments

x

A date/time vector.

dtt

A string specifying the column with the Date or POSIXct values.

units

A string of the time units. The possible values are "secs", "minutes", "hours", "days" or "weeks".

Value

The completed data time series.

Examples

dts_floor(dts_data[c(1,3),], units = "years")

poissonconsulting/dts documentation built on March 10, 2024, 6:21 a.m.