a handy function "format.cardinal", looking for a proper name..
Thomas Lumley
thomas@biostat.washington.edu
Thu, 19 Mar 1998 09:53:41 -0800 (PST)
On Thu, 19 Mar 1998, Martin Maechler wrote:>
> >> This is not a nice name (format is generic; cardinal is not a class)
> >> for a nice function, which I would like in several places in R code
> >> and therefore would like to become part of R (under a better name !)
> >>
I would have though "ordinal" would be a better name. Those things are
called ordinals, not cardinals. This would also allow a language argument
to produce
ordinal(1:3,"english")
"1st" "2nd" "3rd"
ordinal(1:3,"francais")
"1re" "2me" "3me"
and so on (we probably have people on R-devel who can supply rules
for most common languages using the Latin alphabet).
On the other hand, aren't there GNU internationali{s,z}ation libraries
that handle this sort of thing?
Thomas Lumley
------------------------------------------------------+------
Biostatistics : "Never attribute to malice what :
Uni of Washington : can be adequately explained by :
Box 357232 : incompetence" - Hanlon's Razor :
Seattle WA 98195-7232 : :
------------------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._