I have a data frame with a some Dates, I have to convert a format "1996-04-22"
to "1996-04"
in R.
I have the good conversion but not in data type Date and when I tried to convert this to data type Date, I get "NA" everywhere.
//meteo is my date frame and date is where the dates are stocked
What I do :
meteo$date = format(meteo$date, "%Y-%m")
meteo$date = as.Date(meteo$date, format = "%Y-%m")