[R-br] RES: RES: Download de dados pelo R

Benilton Carvalho beniltoncarvalho em gmail.com
Quarta Junho 1 22:23:07 BRT 2011


library(XML)

2011/6/2 Mauro Sznelwar <sznelwar em uol.com.br>:
> Estava vendo a discussão, tentei rodar isto e não consegui, não reconhece o
> comando xpahApply. Tem que chamar alguma bibliotéca para isto?
> Tente assim:
>
> dPath <-
> "http://aspera.jpl.nasa.gov/download/pub/sea_surface_temperature/avhrr/pathfinder/data_v5/monthly/night/04km/1986/bsst/"
> f <- xpathApply(htmlParse(getURL(dPath)), "//a", xmlAttrs,
> 'href')[c(FALSE, TRUE, FALSE)]
> mapply(download.file, file.path("http://aspera.jpl.nasa.gov/", f),
> basename(unlist(f)))
>
> mailman/listinfo/r-br
> _______________________________________________
> R-br mailing list
> R-br em listas.c3sl.ufpr.br
> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>
>



-- 
Successful people ask better questions, and as a result, they get
better answers. (Tony Robbins)


Mais detalhes sobre a lista de discussão R-br