Skip to content
Prev 344678 / 398500 Next

Changing date format

The idea is that I want the non-leap years to be 366 days instead of being
365 days. ie. Each year must have 366 days.

for example: in the column Start2, Apr 18 will be Apr 17.
Year Start End Length Start2   End2
1 1930   108 288    180 Apr 18 Oct 15
2 1931   118 288    170 Apr 28 Oct 15
3 1932   115 295    180 Apr 24 Oct 21
4 1933   156 294    138 Jun 05 Oct 21
5 1934   116 291    175 Apr 26 Oct 18
6 1935   134 288    154 May 14 Oct 15

Is there a way to that in R?

On Tue, Oct 7, 2014 at 3:25 PM, Frederic Ntirenganya <ntfredo at gmail.com>
wrote: