Skip to content
Back to formatted view

Raw Message

Message-ID: <7d7651d5-87fa-5a5e-1506-7cca51adaec7@sapo.pt>
Date: 2022-09-25T20:07:47Z
From: Rui Barradas
Subject: reading text files directly into program from net
In-Reply-To: <CABxY9BMgDOWNfMk3-xy+5qY8oMZoYJ_SHLiTAJnT8t=8TgzzaQ@mail.gmail.com>

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 at 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.