Thanks so much everyone, these suggestions solve my problem in a very elegant
way. 

A friend and I also came up with this "brute force" solution:

T <- c("1993m10")
y <- gsub("m.", "", T)
m <- gsub(".*m", "", T)
d <- paste(y,"-0",m,"-","01", sep="")
T <- as.Date(d, format="%Y-%m-%d")

Thought I would post it in any case.

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

______________________________________________
R-help@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.

Reply via email to