Re: [R] Checking datetime value

2013-11-07 Thread arun
Hi, You can check the dataset for any patterns that are unique for the datetime values. For example: vec1 <-  c(as.character(Sys.time()), format(Sys.time(), "%a %b %d %X %Y %Z"),4324343,format(Sys.time(),"%m-%d-%Y %H:%M:%S"),"aZZCRDDS")  vec1[grepl(":",vec1)] #[1] "2013-11-07 15:04:27"

[R] Checking datetime value

2013-11-07 Thread vikrant
Hi , I would like to check if a column contains datetime values. (column may contain any datetime format or just numbers or string). Request your help -- View this message in context: http://r.789695.n4.nabble.com/Checking-datetime-value-tp4679963.html Sent from the R help mailing list archiv