timeCeiling: timeCeiling

Description Usage Arguments Examples

View source: R/timeCeiling.R

Description

This function acts like a ceiling function for time.

Usage

1
2
timeCeiling(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")) 
timeCeiling(mytime, 15, "minutes")                       

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