powered by
dayOfYear(dat)
dayOfYear(as.Date("2009-01-11"))
Run the code above in your browser using DataLab