make_JDay function

Make Julian Day in dataframe

Make Julian Day in dataframe

This function produced Julian Dates (days of the year) from columns "Day", "Month" and "Year" in a dataframe.

make_JDay(dateframe)

Arguments

  • dateframe: data.frame, which should contain date information specified as columns "Day", "Month" and "Year"

Returns

Returns the same data.frame, but with column "JDay" added. This then contains the Julian Dates.

Examples

dates<-data.frame(Year=c(1977,1980,2004,2011,2016),Month=c(11,8,3,12,8),Day=c(1,21,2,24,2)) make_JDay(dates)

References

The chillR package:

Author(s)

Eike Luedeling

  • Maintainer: Eike Luedeling
  • License: GPL-3
  • Last published: 2024-11-14

Useful links