From maechler at stat.math.ethz.ch  Tue May 12 16:00:39 2009
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Tue, 12 May 2009 16:00:39 +0200
Subject: [Rd] suggestion for extending ?as.factor
In-Reply-To: <20090512111715.GB5761@cs.cas.cz>
References: <49FF25A6.3070907@biostat.ku.dk>
	<18943.64094.648164.476070@lynne.math.ethz.ch>
	<18945.19798.782710.936788@lynne.math.ethz.ch>
	<20090508090155.GA18486@cs.cas.cz>
	<18948.12553.265256.981657@lynne.math.ethz.ch>
	<20090508151448.GA6692@cs.cas.cz> <20090508161056.GB6692@cs.cas.cz>
	<18949.60853.709036.388905@cmath-5.math.ethz.ch>
	<20090510115253.GA26160@cs.cas.cz>
	<18952.16126.640019.723302@lynne.math.ethz.ch>
	<20090512111715.GB5761@cs.cas.cz>
Message-ID: <18953.33031.570628.552074@lynne.math.ethz.ch>

>>>>> "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".

Martin



[Rd] suggestion for extending ?as.factor
Martin Maechler