I have two numeric columns. One contains a year, one a month number. I want to join these two and make a Year-month column that is of the proper Date type. To give a background,
Just add a 01 in your paste and use as.Date
01
as.Date
as.Date(paste(year, month, '01', sep= '-'))