Speedup conversion of 2 million rows of date strings to POSIX.ct

后端 未结 2 1640
星月不相逢
星月不相逢 2020-12-09 11:31

I have a csv which includes about 2 million rows of date strings in the format:

2012/11/13 21:10:00 

Lets call that csv$Date.and.Time

2条回答
  •  北海茫月
    2020-12-09 11:59

    Try using lubridate - it does all date time parsing using regular expressions, so not only is it much faster, it's also much more flexible.

提交回复
热议问题