Re: [R] grep and XML

2012-04-16 Thread Henrique Dallazuanna
Try this: library(rjson) j <- fromJSON(file = 'https://raw.github.com/currencybot/open-exchange-rates/master/latest.json') j$rates$USD On Mon, Apr 16, 2012 at 6:03 PM, Simon Kiss wrote: > Hi all: > I struggle a lot scraping web data. I still haven't got a handle on the XML > package. > I'd like

[R] grep and XML

2012-04-16 Thread Simon Kiss
Hi all: I struggle a lot scraping web data. I still haven't got a handle on the XML package. I'd like to get particular exchange rates from this table: https://raw.github.com/currencybot/open-exchange-rates/master/latest.json This is the code that I'm working with: library(RCurl) library(XML) t