[R] Weird and changed as.roman() behavior

Martin Maechler m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Thu Jan 16 12:21:33 CET 2025


>>>>> Martin Maechler 
>>>>>     on Thu, 16 Jan 2025 12:04:44 +0100 writes:

 [..............]

    > But there's more:  our current help page
    > https://search.r-project.org/R/refmans/utils/html/roman.html
    > says

    >> Only numbers between 1 and 3999 have a unique representation
    >> as roman numbers, and hence others result in as.roman(NA). 
 
    > which is really not quite true, in more than one sense:

    > 1.  as.roman(3899:3999)   # works fine

    > not producing any NA

The above (from "in more than one sense" on) must be somewhat
confusing.  I thought I read '3899' (instead of '3999') on one
version of the help page ...

I hope that everything else I wrote *does* make sense and is hopefully correct...

Martin



More information about the R-help mailing list