hours: Hour Manipulation

Description Usage Arguments Details Value Examples

Description

Utilities for manipulating hours

Usage

1
2
3
as.hour(tm)

hourOffset(hr, offset = 0)

Arguments

tm

them timestamp as POSIXct.

hr

the decimal hour to be wrap.

offset

minimum hour of the interval to wrap into.

Details

Given a vector of POSIXct dates, as.hour extracts the time of day component of the date and returns it as decimal hours. Given a vector of decimal hours, hourOffset recodes the decimal hour into a new 24 hour interval.

Value

Return a decimal hour.

Examples

1
2
as.hour(as.POSIXct("2005-11-12 19:58:00"))
hourOffset(1:10,5)

SWotherspoon/BAStag documentation built on March 29, 2021, 2:47 a.m.