The R Project SVN R-packages

Rev

Blame | Last modification | View Log | Download | RSS feed

".onLoad" <-
function (lib, pkg) {

    ## The following controls the behavior when faced w. 2-digit years.
    ##
    ## To have 2-digit years actually refer to the first century
    ##    options(chron.year.abb = FALSE)
    ##
    ## To flag all 2-digit years as error:
    ##    options(chron.year.abb = TRUE,
    ##            chron.year.expand = "year.strict")
    ##
    ## To allow 2-digit year abbreviations and guess(?) actual year:
    ##    options(chron.year.abb = TRUE,
    ##            chron.year.expand = "year.expand")

    options(chron.year.abb = TRUE,
            chron.year.expand = "year.expand")
}