[R] Convert Numeric (20090101) to Date

RHelpPlease rrumple at trghcsolutions.com
Wed Mar 7 01:38:38 CET 2012


Hi there,
Does it exist where R can convert a numeric date (20090101) to a "proper"
date format?  (Ideally dd-mm-yyyy) 

Original data (in this case) is in .DAT format.  I read the multi-column
data with the read.fwf function, where I specified the column width for the
eight digit date (example above).  After the .DAT data is read-in &
formatted in R, it is to be exported to Excel. 

I understand that with the as.Date function, 20090101 is understood as the
number of days from the R origin date.
  
I read that SAS has the capability to convert 20090101 to a date, so I'm
hoping R does as well.  Conversion to a date in Excel does not work.

Help in this matter is most appreciated!

--
View this message in context: http://r.789695.n4.nabble.com/Convert-Numeric-20090101-to-Date-tp4451859p4451859.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list