From mtmorgan at fhcrc.org  Wed Apr 20 20:37:18 2011
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Wed, 20 Apr 2011 11:37:18 -0700
Subject: [Rd] Make as.factor an S3 generic?
In-Reply-To: <77EB52C6DD32BA4D87471DCD70C8D700042353AC@NA-PA-VBE03.na.tibco.com>
References: <4DAF1023.4040002@fhcrc.org>
	<77EB52C6DD32BA4D87471DCD70C8D700042353AC@NA-PA-VBE03.na.tibco.com>
Message-ID: <4DAF27DE.3050503@fhcrc.org>

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



[Rd] Make as.factor an S3 generic?
Martin Morgan