From savicky at cs.cas.cz  Tue May 12 13:17:15 2009
From: savicky at cs.cas.cz (Petr Savicky)
Date: Tue, 12 May 2009 13:17:15 +0200
Subject: [Rd] suggestion for extending ?as.factor
In-Reply-To: <18952.16126.640019.723302@lynne.math.ethz.ch>
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>
Message-ID: <20090512111715.GB5761@cs.cas.cz>

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

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

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

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

Petr.



[Rd] suggestion for extending ?as.factor
Petr Savicky