hours2: Hour Manipulation 2

as_hourR Documentation

Hour Manipulation 2

Description

Utilities for manipulating hours

Usage

as_hour(tm)

hour_offset(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"))
hour_offset(1:10,5)

KiranLDA/PAMLr documentation built on March 6, 2023, 1:40 p.m.