I have a matrix with separate columns for year (YYYY), Julian day, and time (HHMM). I would like to attach a column vector with the full Gregorian date ("MM/DD/YYYY") and also a column vector which will give me the elapsed time in days. How would I go about this?
To be clear, I am referring to these Julian days: http://landweb.nascom.nasa.gov/browse/calendar.html
Thanks for your help.
C7 <- read.table(text="Year Day Time
2015 193 915
2015 193 930
2015 195 1400
2015 195 1415", header=T)
I would like to add these two columns:
Year Day Time Date Elapsed Time (Days)
2015 193 915 07/12/2015 0.00
2015 193 930 07/12/2015 0.01
2015 195 1400 07/14/2015 2.20
2015 195 1415 07/14/2015 2.21