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

John Kane jrkrideau at yahoo.ca
Sun Feb 25 16:33:06 CET 2007


--- hadley wickham <h.wickham at gmail.com> 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)

I prefer 1 but if it is in conflict with S2 then I go
with 3. I just don't like underscores. :)



More information about the R-help mailing list