Suppose I have the following data frame with dates from 2020:
date
2020-01-01T05:00:00+0000
2020-02-01T05:00:00+0000
2020-01-01T05:00:00+0000
2020-03-01T05:00:00+0000
The column is of type character
.
I want to create a second column which will return.g. Jan-20, Feb-20, etc. I.e. the following:
date date_name
2020-01-01T05:00:00+0000 Jan-20
2020-02-01T05:00:00+0000 Feb-20
2020-01-01T05:00:00+0000 Jan-20
2020-03-01T05:00:00+0000 Mar-20
Note that e.g. -01-
refers to January.
Does anyone know how to do this?