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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
There are the functions mdy.date() and as.date() in the survival library, that convert to Julian date. At 02:33 PM 23/7/2002 -0300, 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 >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >._._-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._