[R] date to decimal date conversion
Gabor Grothendieck
ggrothendieck at gmail.com
Wed Jul 16 18:57:12 CEST 2008
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.
>
More information about the R-help
mailing list