[R] Parsing unusual date format

Shruthi Jayaram shruthi.jayaram.85 at gmail.com
Thu Dec 18 07:14:04 CET 2008


Hello,

If I have a character string like

d <- c("1990m3", "1992m8") #March 1990 and Aug 1992

what is the easiest way to convert it into any standard date form; for
example,

d <- c("01/03/1990", "01/08/1992") 

I looked at as.Date but it doesn't seem to address my problem as I have an
"m" stuck in the middle of my character string which R does not recognise.

Would be very grateful for any help on this. 

Shruthi
-- 
View this message in context: http://www.nabble.com/Parsing-unusual-date-format-tp21067562p21067562.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list