Skip to content
Prev 164346 / 398506 Next

Confusion with Converting Factors to Dates using as.date

Thank you very much, Peter. As is often the case, R gave me exactly what I
asked it to give me, but not what I wanted it to give me. :)

Cheers,
Josip

Research Associate
Human Security Report Project
School for International Studies
Simon Fraser University
Suite 7200--515 W. Hastings St.
Vancouver, BC V6B 5K3 Canada

----- Original Message -----
From: "Peter Dalgaard" <p.dalgaard at biostat.ku.dk>
To: "Josip Dasovic" <j_dasovic at sfu.ca>
Cc: r-help at r-project.org
Sent: Wednesday, December 10, 2008 1:16:48 PM GMT -08:00 US/Canada Pacific
Subject: Re: [R] Confusion with Converting Factors to Dates using as.date
Josip Dasovic wrote:
Well, to quote ?strptime:

      '%y' Year without century (00-99). If you use this on input, which
           century you get is system-specific.  So don't!  Often values
           up to 68 (or 69) are prefixed by 20 and 69 (or 70) to 99 by
           19.