On 6/26/05, Mike R <[EMAIL PROTECTED]> wrote:
> Is there a way in R to globally setup a default format for dates for all, or
> nearly all, or just "many" R date/time-related functions?
>
> For example, dates in library(chron) expects, by default, MDY with
> forward-slash delimiters, whereas my habit and my data sets tend to
> be YMD with dash delimiters, as in 2005-06-24
>
> Currently, I use the following practice:
>
> dates("2005-06-24", format="y-m-d")
>
> Is there a recommended documentation page that thoroughly describes
> all the possible "environment" settings in addition to some such "date"
> setting?
The Date class uses the yyyy-mm-dd format by default so you
could just use the Date class.
The global variables used by chron do not include a default format but
the ones that do exist and other information on dates is discussed in
the Help Desk article in R News 4/1.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html