powered by
Converts a year-month string in "YYYYMM" format to a Date object (first day of the month).
year_month_to_date(year_month)
A Date vector.
Character vector of year-month strings in "YYYYMM" format.
year_month_to_date("202312") year_month_to_date(c("202301", "202302", "202303"))
Run the code above in your browser using DataLab