Displaying 1 result from an estimated 1 matches for "140th".
Did you mean:
10th
2006 Jun 15
1
Problem with Julian function
...when I apply the Julian function:
> julian(months(ymd),days(ymd),years(ymd),origin=c(month = 1, day = 1, year
= as.numeric(years(ymd[1]))))
I get the following result:
[1] 137 137 137 138 138 138 138 139 139 139
However, when I check on the calendar, the dates I have correspond to the
139th, 140th and 141st days of the year (there is a two days shift because
it is a leap year, for other years I have a one day shift).
I tried the default origin when I use the dates function but I get the same
results.
Did anyone have this problem before ? I would appreciate some help,
Thank you very much...