It seems to me that the comma in your data is a problem. There are probably dozens of ways to handle this.
here alone
x <- c("12,983,336", "12,323,294", "11,375,954", "10,917,221", "10,667,700", "10,292,386", "9,350,192", "9,135,520", "9,001,309", "8,653,415", "7,784,755", "7,508,976", "7,362,790", "6,959,047", "6,706,543", "1,026", "1,024", "1,023", "1,020", "1,017", "1,016", "1,013", "1,011", "1,001", "1,000", "1,000", "999", "997", "994", "990", "989", "988", "984", "982", "979", "974", "972", "971", "966", "961") as.numeric(gsub(",","",x,fixed=TRUE))