Re: [R] Reading Text files from UK Met Office into R again...

2022-10-12 Thread David Winsemius
First one needs to remove the extraneous line-ends that you created by using an editor that inserts those line-ends (or perhaps it was your mail-client that added them because you failed to post in plain-text. I removed those files "by hand" and then created a text "file". txt <- "2015-01-01 00

Re: [R] Reading Text files from UK Met Office into R again...

2022-10-09 Thread Dr Eberhard W Lisse
Does it say what the new format is? On 2022-10-09 13:01 , Nick Wray wrote: [...] > Up to 2010 everything's fine and dandy - the data is in nice neat columns > and I can download it and filter out what I don't want. But after 2010 the > format changes (The Met Office in fact say on their guideline

Re: [R] Reading Text files from UK Met Office into R again...

2022-10-09 Thread Ivan Krylov
On Sun, 9 Oct 2022 12:01:27 +0100 Nick Wray wrote: > Error in read.table("midas_wxhrly_201501-201512.txt", fill = T) : > duplicate 'row.names' are not allowed Since you don't pass the `header` argument, I think that the automatic header detection is here at play. This is what ?read.table has t

[R] Reading Text files from UK Met Office into R again...

2022-10-09 Thread Nick Wray
Hello I've had some invaluable help from folk about downloading files from the UK Met Office - unfortunately I now have another one which I can't solve and I wonder whether anyone's got any ideas. I'm trying to download hourly weather records from the Met Office https://data.ceda.ac.uk/badc/ukmo