Re: [R] date to decimal date conversion

2008-07-16 Thread Gabor Grothendieck
Its not clear from your post what the decimal portion is supposed to represent since Feb is not 35% of the way through the year but in any case see R News 4/1 and the full page table at the end of that article, in particular, for some date idioms that you can use. On Wed, Jul 16, 2008 at 7:41 AM,

[R] date to decimal date conversion

2008-07-16 Thread Yogesh Tiwari
Hello R Users, I want to convert date (yr, mo, day, hr, min, sec) to decimal date, for example: Date (in six columns): yr mo dy hr minsec 1993 02 13 05 52 00 Converted to Decimal date : 1993.3542 How to write a small code in R so I can convert six column date to