Hello,

with Sys.time() you get the following string:

"2011-11-15 16:25:55 GMT"

How can I extract the following substrings:

year <- 2011

month <- 11

day_time <- 15_16_25_55


Cheers,

Syrvn

--
View this message in context: 
http://r.789695.n4.nabble.com/Extract-pattern-from-string-tp4073432p4073432.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