Importing wikipedia tables in R

后端 未结 4 389
别跟我提以往
别跟我提以往 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:38

    One simple way to do it is to use the RGoogleDocs interface to have Google Docs to do the conversion for you:

    http://www.omegahat.org/RGoogleDocs/run.html

    You can then use the =ImportHtml Google Docs function with all its pre-built magic.

提交回复
热议问题