I have a column in a data.frame in R that looks like the picture and it is stored as a factor:
I need to create a new column in the data.frame that has a data type = date, where this date is the first day of the month. Any ideas of how to create this in an easy way?