[R] Downloading a html table

Rolf Turner rolf.turner at xtra.co.nz
Tue Oct 23 05:46:54 CEST 2012


On 23/10/12 16:17, David Arnold wrote:
> All,
>
> A friend of mine would like to use this data with his stats class:
>
> http://www.worldatlas.com/aatlas/populations/usapoptable.htm
>
> I can't figure a way of capturing this data due to the mysql commands in the
> source code.
>
> Any thoughts?

Copying and pasting, and then editing the resulting file just a wee bit 
(changing
the blanks in state names to underscores) gave me a file that was readily
readable by read.table().

Is the column of state populations really blank?  Or is there something
funny happening with my web browser?

     cheers,

         Rolf Turner




More information about the R-help mailing list