Specifying column class in html_table(rvest)
问题 I am using the html_table from rvest to read a two-column concordance table from the website below. Both columns contain instances of leading zeros which I would want to preserve. As such, I would want the columns to be of class character. I use the following code: library(rvest) library(data.table) df <- list() for (j in 1:25) { url <- paste('http://unstats.un.org/unsd/cr/registry/regso.asp?Ci=70&Lg=1&Co=&T=0&p=', j, '&prn=yes', sep='') webpage <- read_html(url) table <- html_nodes(webpage,