Access a URL and read Data with R

后端 未结 5 1306
醉酒成梦
醉酒成梦 2020-11-27 02:54

Is there a way I can specify and get data from a web site URL on to a CSV file for analysis using R?

5条回答
  •  佛祖请我去吃肉
    2020-11-27 03:28

    Often data on webpages is in the form of an XML table. You can read an XML table into R using the package XML.

    In this package, the function

    readHTMLTable()
    

    will look through a page for XML tables and return a list of data frames (one for each table found).

提交回复
热议问题