How to drop factor levels while scraping data off US Census HTML site
问题 Thank you in advance for your help. On the US Census website (below), I am looking for an element in the 6th row, 3rd column of the 4th table. Here's the code I am writing: complete_URL <- "http://quickfacts.census.gov/qfd/states/01/01011.html" temp_TBL <- readHTMLTable(complete_URL, which=4) business_number_vector <- temp_TBL[6,3] print(business_number_vector) What I get is: [1] 417 Levels: 417 What I'd like is: [1] 417 Thank you again so much for your help! 回答1: It's actually R-FAQ 7.10: