[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    Re: [R]  Date read correctly from CSV, then reformatted incorrectly by R
From:       peter dalgaard <pdalgd () gmail ! com>
Date:       2021-11-23 8:40:28
Message-ID: B8068C52-05C0-435E-8792-76DF31C5E4F5 () gmail ! com
[Download RAW message or body]

It reads other formats _if you specify them_. After all, no computer (or hu=
man) can tell whether 11/03/1959 is November 3 or March 11 without further =
hinting. So it tries the two ISO-like formats and leaves other cases for th=
e user.

-pd

> On 20 Nov 2021, at 21:22 , Philip Monk <prmonk@gmail.com> wrote:
> =

> Thanks, Andrew.  I didn't realise as.Date *only* read two formats, I
> think I was tripped up by using %y instead of %Y, =


-- =

Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes@cbs.dk  Priv: PDalgd@gmail.com

______________________________________________
R-help@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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic