[R] Incorrect Conversion of Datetime

Jim Lemon drj|m|emon @end|ng |rom gm@||@com
Wed Jan 8 22:17:23 CET 2020

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:


and compare what appears with the original file. You may see the
problem straightaway.


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