foy: Calculate the Fraction of the Year from a Date

foyR Documentation

Calculate the Fraction of the Year from a Date

Description

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.

See Also

Other utilities: file_ext(), ifnull(), messages, named_null_list(), package_version_finder(), round_na.interp(), update_list()

Examples

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


weecology/portalcasting documentation built on Jan. 31, 2024, noon