add_year_frac: Add 'year fraction' (yrFrac) to a data table

Description Usage Arguments Value

View source: R/utils.R

Description

So-called 'year fraction' is the percentage of hours that have elapsed given the date and hour. For example at 2 am on 3/1/17, yrFrac = 0.16187: (59 days * 24 hours + 2 hours)/8760 hours in a year.

Usage

1

Arguments

dt

a data table to which yrFrac will be added

Value

the data table with yrFrac added


tvwallace/gefcom17Model documentation built on Jan. 23, 2021, 12:48 a.m.