[R] read the date format

arun smartpink111 at yahoo.com
Tue Jul 3 17:48:17 CEST 2012


Hi,

Hope this helps.

date1<- c("thursday November 20, 2012", "friday November 21, 2012", "saturday November 22, 2012")
 date2<- as.Date(date1, format= "%A %B %d, %Y")
 date2
[1] "2012-11-20" "2012-11-21" "2012-11-22"

A.K.




----- Original Message -----
From: arunkumar1111 <akpbond007 at gmail.com>
To: r-help at r-project.org
Cc: 
Sent: Tuesday, July 3, 2012 2:04 AM
Subject: [R] read the date format

hi

I have a data like   thursday, November 20,2012.   I'm not able to convert
into data format in R

Can anyone please help

-----
Thanks in Advance
        Arun
--
View this message in context: http://r.789695.n4.nabble.com/read-the-date-format-tp4635245.html
Sent from the R help mailing list archive at Nabble.com.

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




More information about the R-help mailing list