Learn R Programming

timefully (version 0.1.0)

dhours: Decimal hours from datetime

Description

Converts a datetime vector into decimal hours (hour plus minutes / 60). The input must not include seconds because sub-minute resolution would make the decimal representation ambiguous for matching time slots.

Usage

dhours(datetime)

Value

Numeric vector with decimal hours.

Arguments

datetime

POSIXct vector.