date <- as.Date("2015-02-10")
compute_day_from_date(date = date)
compute_day_from_date(date = "2015-02-10", start_year = 2014)
date <- as.Date("2009-02-10")
compute_day_from_date(date = date, start_year = 2008 )
dates <- c(as.Date("2008-02-10"), as.Date("2009-02-10"))
compute_day_from_date(date = dates, start_year = 2008 )
Run the code above in your browser using DataLab