Re: [R] date to decimal date conversion

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Wed, 16 Jul 2008 12:57:12 -0400

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, Yogesh Tiwari <yogesh.mpi_at_googlemail.com> wrote:
> 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 min sec
> 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 decimal
> date
>
> Many thanks,
>
> Yogesh
>
> --
> Yogesh K. Tiwari (Dr.rer.nat),
> Scientist,
> Indian Institute of Tropical Meteorology,
> Homi Bhabha Road,
> Pashan,
> Pune-411008
> INDIA
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 16 Jul 2008 - 17:02:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Jul 2008 - 17:31:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive