[Rd] suggestion for extending ?as.factor

Martin Maechler maechler at stat.math.ethz.ch
Tue May 12 16:00:39 CEST 2009

>>>>> "PS" == Petr Savicky <savicky at cs.cas.cz>
>>>>>     on Tue, 12 May 2009 13:17:15 +0200 writes:

    PS> On Mon, May 11, 2009 at 05:06:38PM +0200, Martin Maechler wrote:
    >> The version I have committed a few hours ago is indeed a much
    >> re-simplified version, using  as.character(.) explicitly

    PS> The current development version (2009-05-11 r48528) contains
    PS> in ?factor a description of levels parametr

    PS> levels: an optional vector of the values that 'x' might have taken. 
    PS> The default is the unique set of values taken by
    PS> 'character(x)', sorted into increasing order _of 'x'_.  Note
    PS> that this set can be smaller than 'sort(unique(x))'.

    PS> I think that 'character(x)' should be 'as.character(x)'.

Definitely; thank you.
Thanks as well to suggestions from yesterday, of which I have at
least added the "approximately".


More information about the R-devel mailing list