hours: Hour Manipulation

as.hourR Documentation

Hour Manipulation

Description

Utilities for manipulating hours

Usage

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

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

slisovski/TwGeos documentation built on Jan. 27, 2024, 10:43 a.m.