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,
You could consider the yearmon class in the zoo package:
library(zoo) zoo::as.yearmon(paste(year, month, sep='-'))