[R] Converting dates?

Joerg Maeder maeder at atmos.umnw.ethz.ch
Wed Jul 24 08:51:56 CEST 2002


Hello marcelo

try

plot(strptime(dates,format="%d/%m/%Y"),data)

gruess

joerg


marcelo wrote:
> 
> Dear R-users
> 
> I have some doubts about with converting dates...
> e.g.
> dates         data
> 23/12/1975    0.8678
> 03/01/1976    0.8736
> 28/01/1976    0.765
> 13/03/1976    0,9654
> ...
> I think that converting these dates can easily my plots...
> 
> is there a R function to convert these dates to
> a julian dates and so plot that variables??
> The help files as.POSIXlt, POSIXt and others
> don't aswer my doubts...
> DateTimeClass convert my "dates" to a format POSIX
> and so i can plot??
> Thanks for any help!
> --
> Marcelo Alexandre Bruno - Pos-graduacao Oceanografia Biologica
> Departamento de Oceanografia -  Laboratorio de Ecologia do Ictioplancton
> (0xx53) 2336529 - Rio Grande - RS - BRAZIL
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-- 
Joerg Maeder    .:|:||:..:.||.::   maeder at atmos.umnw.ethz.ch
Tel: +41 1 633 36 25   .:|:||:..:.||.::   
http://www.iac.ethz.ch/staff/maeder
PhD student at INSTITUTE FOR ATMOSPHERIC AND CLIMATE SCIENCE (IACETH)
ETH ZÜRICH Switzerland
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list