[R] Double-banger function names: preferences and suggestions

Frank E Harrell Jr f.harrell at vanderbilt.edu
Sun Feb 25 16:24:10 CET 2007


hadley wickham wrote:
> What do you prefer/recommend for double-banger function names:
> 
>  1 scale.colour
>  2 scale_colour
>  3 scaleColour
> 
> 1 is more R-like, but conflicts with S3.  2 is a modern version of
> number 1, but not many packages use it.  Number 3 is more java-like.
> (I like number 2 best)
> 
> Any suggestions?
> 
> Thanks,
> 
> Hadley

Personal preference is for 3.  I wish I had used that throughout the 
Hmisc and Design packages for non-generics.

Frank

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University



More information about the R-help mailing list