[R] Incorrect Conversion of Datetime: Fixed

Ogbos Okike g||ted|||e2014 @end|ng |rom gm@||@com
Thu Jan 9 03:20:07 CET 2020

Dear ALL,
I am really happy. Erinco has pointed out the error.

Out of the the 5 stations'  Cosmic ray data I am staking together to
show some similar effects, I wrongly (and I am sorry for taking your
time) copied one of the dates, including January 1, 1998 instead of
Others were correct and it will never occur to me, except for the keen
eye of Erinco, that the problem is from any of the data.

This singular correction has also changed my plot and all the
attendant analysis.
Thank you all for your kind suggestions.
Warmest regards
On Wed, Jan 8, 2020 at 10:17 PM Jim Lemon <drjimlemon using gmail.com> wrote:
> Enrico seems to have found the problem - you can't change dates much
> by changing the time zone, but transposing month and day will do the
> trick nicely. The mm/dd/yyyy format and others like it are so common
> that you always have to be on the lookout for it. Is the sample data
> you included in your first email taken from the file you are reading
> in? When I read in that sample data the correct result was returned. I
> would open the original file in a text editor, read the data in using
> your commands and then:
> head(dta)
> and compare what appears with the original file. You may see the
> problem straightaway.
> Jim
> On Thu, Jan 9, 2020 at 7:50 AM Enrico Schumann <es using enricoschumann.net> wrote:
> > ...
> > The data that you read in has January (1) as month.
> > So whatever goes wrong, seems to go wrong when you read
> > the data.  Are you quite sure you read the file you
> > read is the file you have shown?
> >

More information about the R-help mailing list