[R] date to decimal date conversion

From: Yogesh Tiwari <yogesh.mpi_at_googlemail.com>
Date: Wed, 16 Jul 2008 17:11:49 +0530


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.
Received on Wed 16 Jul 2008 - 16:38:37 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 - 18:32:02 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