I have years which are represented by either four or two digits in the same variable. For example c(2010, 1980, 60, 69, 75, 5, 15)
Every 2 digits between 60 and 75 should get a 19 in front of itself.
Every 2 digits between 10 and 20 should get a 20 in front of itself.
sprintf seems the way to go but how exactly? Thanks in advance!