Skip to content

Julian Dates

2 messages · Massimiliano Tripoli, PIKAL Petr

#
Hallo
On 28 Jan 2004 at 13:13, Massimiliano Tripoli wrote:

            
Well, the result probably depends on your system and locale setting.
I would use 4 digit year.

You can use ifelse construction to compute 4 digit years and then you have to 
reconstruct your dates vector probably with paste and as.character.

ifelse(as.numeric(substr("01/02/06",7,8))>5, 
as.numeric(substr("01/02/06",7,8))+1900, 
as.numeric(substr("01/02/06",7,8))+2000)

Cheers
Petr
Petr Pikal
petr.pikal at precheza.cz