Re: [R] Downloading data from from internet

2009-09-26 Thread Gabor Grothendieck
Here are three different approaches: 1. Using the first link as an example, on Windows you can copy the data and headers from IE (won't work in Firefox) to Excel and from there to clipboard again and then in R: library(zoo) DF <- read.delim("clipboard") z <- zooreg(c(t(DF[5:1, 2:13])), start = as

Re: [R] Downloading data from from internet

2009-09-26 Thread cls59
Duncan Temple Lang wrote: > > > > However, you can use the source form of the package as a Windows > user; you just have to install it. That involves finding out how to do > this > (either with Uwe's Windows package building service or by installing the > tools > that Brian Ripley and Duncan M

Re: [R] Downloading data from from internet

2009-09-26 Thread Duncan Temple Lang
Bogaso wrote: > Thanks Duncan for your input. However I could not install the package > "RHTMLForms", it is saying as not not available : > >> install.packages("RHTMLForms", repos = "http://www.omegahat.org/R";) > Warning in install.packages("RHTMLForms", repos = > "http://www.omegahat.org/R";)

Re: [R] Downloading data from from internet

2009-09-25 Thread Bogaso
Thanks Duncan for your input. However I could not install the package "RHTMLForms", it is saying as not not available : > install.packages("RHTMLForms", repos = "http://www.omegahat.org/R";) Warning in install.packages("RHTMLForms", repos = "http://www.omegahat.org/R";) : argument 'lib' is mis

Re: [R] Downloading data from from internet

2009-09-25 Thread Duncan Temple Lang
Bogaso wrote: > Thank you so much for those helps. However I need little more help. In the > site > "http://www.rateinflation.com/consumer-price-index/usa-historical-cpi.php"; > if I scroll below then there is an option "Historical CPI Index For USA" > Next if I click on "Get Data" then another t

Re: [R] Downloading data from from internet

2009-09-25 Thread Bogaso
Thank you so much for those helps. However I need little more help. In the site "http://www.rateinflation.com/consumer-price-index/usa-historical-cpi.php"; if I scroll below then there is an option "Historical CPI Index For USA" Next if I click on "Get Data" then another table pops-up, however wit

Re: [R] Downloading data from from internet

2009-09-24 Thread Duncan Temple Lang
Thanks for explaining this, Charlie. Just for completeness and to make things a little easier, the XML package has a function named readHTMLTable() and you can call it with a URL and it will attempt to read all the tables in the page. tbls = readHTMLTable('http://www.rateinflation.com/consumer

Re: [R] Downloading data from from internet

2009-09-24 Thread cls59
Bogaso wrote: > > Hi all, > > I want to download data from those two different sources, directly into R > : > > http://www.rateinflation.com/consumer-price-index/usa-cpi.php > http://eaindustry.nic.in/asp2/list_d.asp > > First one is CPI of US and 2nd one is WPI of India. Can anyone please g

[R] Downloading data from from internet

2009-09-24 Thread Bogaso
Hi all, I want to download data from those two different sources, directly into R : http://www.rateinflation.com/consumer-price-index/usa-cpi.php http://eaindustry.nic.in/asp2/list_d.asp First one is CPI of US and 2nd one is WPI of India. Can anyone please give any clue how to download them dir