I have a dataset which has a combined date-time
column, which I would like to split into separate year
, month
, day
and time
columns. I usually use the lubridate
library with appropriate arguments, but this particular column also has a character T
in it too in each row.
How can I split this column by dropping the character T
from each row of this column?
Date_Time
2020-01-01T00:48:00
2020-01-01T00:46:00
2020-01-02T15:07:00
2020-01-02T15:07:00