I am trying to convert all row-values in a column from string-format to date-format.
The values are like the following:
[1] "jan-2020"
[2] "feb-2020"
The column name is "dato" and the data frame is "uth.sum"
I am trying to use as.Date() to convert it, but when I do the following:
uth.sum$dato <- as.Date(uth.sum$dato, format = "%b-%Y")
It does not convert it, but instead removes all values and leaves NA-value.
I want to mention that the column and its values, like "jan-2020", are made by taking out values from two other columns and combining them with the paste()-function. But that should not be a problem, should it?