timeFloor: timeFloor

Description Usage Arguments Examples

View source: R/timeFloor.R

Description

This function acts like a floor function execpt for time.

Usage

1
timeFloor(timeValue, timeIntervalValue = 15, timeIntervalUnits = "minutes")

Arguments

timeValue

typically a column of time Values to take the floor function

timeIntervalValue

the value of the time interval

timeIntervalUnits

the units of the time interval

Examples

1
2
3
4
library(EmissionsHelper)
mytime <- reformatTime(c("2018-1-1 12:01", "2018-1-1 12:02",
                       "2018-1-1 12:16", "2018-1-1 12:17")) 
timeFloor(mytime, 15, "minutes") 

Agriculturist/EmissionsHelper documentation built on July 19, 2020, 5:27 p.m.