[Rd] Make as.factor an S3 generic?
Martin Morgan
mtmorgan at fhcrc.org
Wed Apr 20 20:37:18 CEST 2011
On 04/20/2011 10:13 AM, William Dunlap wrote:
>> -----Original Message-----
>> From: r-devel-bounces at r-project.org
>> [mailto:r-devel-bounces at r-project.org] On Behalf Of Martin Morgan
>> Sent: Wednesday, April 20, 2011 9:56 AM
>> To: R-devel at r-project.org
>> Subject: [Rd] Make as.factor an S3 generic?
>>
>> as.factor / as.ordered is not written as a generic. This differs from
>> as.numeric, as.matrix, and other as.*. The following seems to address
>> this and does not break make check-all.
>
> Why did you decide to make as.factor() generic instead of factor()?
Hi Bill --
short-sighted consistency with other as.*; implied simplicity of
coercion rather than construction.
Martin
>
> Bill Dunlap
> Spotfire, TIBCO Software
> wdunlap tibco.com
--
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109
Location: M1-B861
Telephone: 206 667-2793
More information about the R-devel
mailing list