R言語日時処理
日付時間処理
続きは...
## ,
Sys.setlocale("LC_TIME", "C") ##
d1
[1] "23/Nov/2014:23:21:02" "23/Nov/2014:23:04:56" "23/Nov/2014:23:33:49"
[4] "23/Nov/2014:23:15:38" "23/Nov/2014:23:40:46" "23/Nov/2014:23:15:58"
[7] "23/Nov/2014:23:40:37" "23/Nov/2014:23:55:23" "23/Nov/2014:23:49:15"
[10] "23/Nov/2014:23:42:08"
d2 <- strptime(x = d1, format='%d/%b/%Y:%H:%M:%S')
str(d2)
POSIXlt[1:10], format: "2014-11-23 23:21:02" "2014-11-23 23:04:56" "2014-11-23 23:33:49" ...
str(d1)
chr [1:10] "23/Nov/2014:23:21:02" "23/Nov/2014:23:04:56" "23/Nov/2014:23:33:49" ...
続きは...