I have a data frame in R where dates are in two different formats: 2019-01-01
and 01/01/2019
. These are stored as characters by default because R can't convert them to dates.
There's a pretty easy way to clean this up, however:
I have a data frame in R where dates are in two different formats: 2019-01-01
and 01/01/2019
. These are stored as characters by default because R can't convert them to dates.
There's a pretty easy way to clean this up, however: