[R] reading text files directly into program from net

Rui Barradas ru|pb@rr@d@@ @end|ng |rom @@po@pt
Sun Sep 25 22:07:47 CEST 2022


Hello,

Inline.

Às 09:53 de 25/09/2022, Nick Wray escreveu:
> Hello   I am working with daily rainfall data for the UK from 1915 onwards
> from the Met Office.  The data is on this site:
> 
> https://data.ceda.ac.uk/badc/ukmo-midas-open/data/uk-daily-rain-obs/dataset-version-201901
> 
> There are many files for the different counties.  For example there are
> seven station files for Berwickshire in this site:
> 
> https://data.ceda.ac.uk/badc/ukmo-midas-open/data/uk-daily-rain-obs/dataset-version-201901/berwickshire
> 
> 
> The first station in this dataset
>   has the name  00265_mertoun
> <https://data.ceda.ac.uk/badc/ukmo-midas-open/data/uk-daily-rain-obs/dataset-version-201901/berwickshire/00265_mertoun>
> which
> is a code and location name, again for example, and inside is a text file

The file is a csv file and there are also two directories

qc-version-0  empty
qc-version-1  has 10 csv files spanning the years 1961-1970


Which files do you want, these last ones?

Hope this helps,

Rui Barradas


> 
> It's easy but time-consuming to download the files one by one - I am sure
> that it is possible to read them directly into an R program but whatever
> coding or path I try to use I get an error.  I can't find an example online
> which I can tweak to allow me to do this.
> 
> can anyone help?  Thanks Nick Wray
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list