I have a table with a variable which contains dates in the pattern YYYY-MM-DD.
I am looking for a way just to remove/delete the "-MM-DD" in this column.
Google gave me pages which told me to use str_sub() but this just won't work out as I want it to. It will only generate values which would only contain the years then and nothing else. I want to keep the other columns from the data frame, but str_sub() just won't let me.