Importing wikipedia tables in R

后端 未结 4 398
别跟我提以往
别跟我提以往 2021-01-01 15:31

I regularly extract tables from Wikipedia. Excel\'s web import does not work properly for wikipedia, as it treats the whole page as a table. In google spreadsheet, I can ent

4条回答
  •  一个人的身影
    2021-01-01 16:27

    Here is a solution that works with the secure (https) link:

    install.packages("htmltab")
    library(htmltab)
    htmltab("http://en.wikipedia.org/wiki/Upper_Peninsula_of_Michigan",3)
    

提交回复
热议问题