Skip to content
Prev 4356 / 15274 Next

Downloading data from specific website

Try this.  First we read in the entire page line by line into Lines
and find the index, ix, of the line starting with <.   st is its
value as a character string after stripping off junk.  Then we
re-read the page from the text we already downloaded but this
time as a table skipping the first ix lines and finally we
convert it to zoo using as.yearqtr(st) as the start quarter.
Dp     R
1972 Q2 -0.003132580 0.083
1972 Q3  0.018871300 0.083
1972 Q4  0.024803600 0.087
1973 Q1  0.016277600 0.087
1973 Q2  0.000289679 0.102
1973 Q3  0.016829000 0.098
On Thu, Jun 18, 2009 at 3:58 PM, Bogaso<bogaso.christofer at gmail.com> wrote: