I have a 2D list that has two columns containing percentages of data I am collecting. Because the data is scraped, the whole list is of type character. I've tried gsub("%", "", mydata[[5]][2])
which turns that column into 9 rows of c('2', '11', '13'...) and then as.numeric(myurl[[5]][2])
but then I get NAs by coercion. If I try to call as.numeric(myurl[[5]][2])
first, I get "(list) object cannot be coerced to type 'double'".
Edit: Here is the result of using sub("%", "", myurl[[5]][2])
As you can see they're not ints and they are not formatting how I would like them to. The original data is just a column that looks fine but acts up when I try to use them numerically.