Re: [Rd] Make as.factor an S3 generic?

From: Martin Morgan <mtmorgan_at_fhcrc.org>
Date: Wed, 20 Apr 2011 11:37:18 -0700

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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 20 Apr 2011 - 18:42:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 20 Apr 2011 - 19:40:49 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive