R readHTMLTable() function error
问题 I'm running into a problem when trying to use the readHTMLTable function in the R package XML. When running library(XML) baseurl <- "http://www.pro-football-reference.com/teams/" team <- "nwe" year <- 2011 theurl <- paste(baseurl,team,"/",year,".htm",sep="") readurl <- getURL(theurl) readtable <- readHTMLTable(readurl) I get the error message: Error in names(ans) = header : 'names' attribute [27] must be the same length as the vector [21] I'm running 64 bit R 2.15.1 through R Studio 0.96.330.