Skip to contents

Based on the year in which the date occurred, determine the fraction of the year (foy) for the date (in relation to New Year's Eve in that year).

Usage

foy(dates = NULL)

Arguments

dates

Date(s) or Date-conformable value(s) to be converted to the fraction of the year.

Value

numeric value(s) of the fraction of the year.

Examples

   Sys.Date( )
   foy(Sys.Date())