Re: [R] Dots in function names

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sat 01 Oct 2005 - 04:55:20 EST

"Mike Prager" <Mike.Prager@noaa.gov> writes:

> Recent R function names seem to be using CaseOfTheLetters to mark words
> rather than dots as was done previously. Is the use of dots in function
> names deprecated, or is that simply a style choice? Will function names
> with dots cause problems in future revisions?

Well, come the S4 revolution and dots will cause trouble no more...

The main reason dots have fallen from grace is that they cause ambiguity in relation to S3 methods. In a nutshell: t.test is not a transpose method for objects of class "test". Since we check S3 methods automatically, it is problematic to keep track of things that look like S3 methods without being so. Check out .make_S3_methods_stop_list() (in the tools package).

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Oct 01 05:04:55 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:34 EST