I want to create a table (wither data frame or data table) with two columns and 30 rows which are actualy dates. Col1 should contain dates like: yyyymm between 199801 and 200012 in this particular format and randomly generated. Col2 should get only the year information from the first column.
I tried with as.Date but I didn't get teh format above. Any clue how toget it right? Thank you