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

Clint Bowman clint at ecy.wa.gov
Thu Mar 1 18:56:00 CET 2007


I agree with Jason:  !2, prefer 1, can accept 3.

Clint Bowman			INTERNET:	clint at ecy.wa.gov
Air Dispersion Modeler		INTERNET:	clint at math.utah.edu
Air Quality Program		VOICE:		(360) 407-6815
Department of Ecology		FAX:		(360) 407-7534

	USPS:  		PO Box 47600, Olympia, WA 98504-7600
	Parcels:	300 Desmond Drive, Lacey, WA 98503-1274

On Thu, 1 Mar 2007, Jason Barnhart wrote:

> Definitely not #2.   Prefer #1 but #3 is ok as well.
>
> Thanks for contributing and inquiring.
>
>
> ----- Original Message -----
> From: "hadley wickham" <h.wickham at gmail.com>
> To: <R-help at r-project.org>
> Sent: Sunday, February 25, 2007 7:44 AM
> Subject: [R] Double-banger function names: preferences and suggestions
>
>
> > 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
> >
> > ______________________________________________
> > R-help at 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
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list