Skip to contents

Each row's time of loss, the fraction of its year elapsed, from its day of the year (a whole number from 1 to 365) and hour of the day (0 to 24; the start of the day without hours): ((day - 1) * 24 + hour) / 8760, on the 8,760-hour year of the hours clause. This is the rule read_ylt() applies with day and hour.

Usage

day_hour_times(days, hours = NULL)

Arguments

days

Days of the year.

hours

Hours of the day, or NULL.

Value

A numeric vector of times in [0, 1]. A missing, non-numeric or out-of-range day or hour is an error naming the row.

Examples

day_hour_times(c(1, 365), c(0, 24))
#> [1] 0 1