[R] Variable passed to function not used in function in select=... in subset

Bert Gunter gunter.berton at gene.com
Tue Nov 11 20:56:34 CET 2008


Ummm... as today is still Armistice day  (in my time zone, anyway), maybe we
should call a truce and end this flame war...

Cheers,
Bert


-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Berwin A Turlach
Sent: Tuesday, November 11, 2008 9:31 AM
To: Duncan Murdoch
Cc: R help
Subject: Re: [R] Variable passed to function not used in function in
select=... in subset

G'day Duncan,

On Tue, 11 Nov 2008 09:37:57 -0500
Duncan Murdoch <murdoch at stats.uwo.ca> wrote:

> I think this tension is a fundamental part of the character of S and
> R. But it is also fundamental to R that there are QC tests that apply
> to code in packages:  so writing new tests that detect dangerous
> usage (e.g. to disallow partial name matching) would be another way
> to improve reliability.  [...]

Please not. :)
After years of using of R, it is now second nature to me to type (yes,
I always spell out "from" and "to") 
	seq(from=xx, to=yy, length=zz)
and I never understood why the full name of that argument had to be
length.out.  I would hate to see lots of warning messages because I am
using partial matching.

Cheers,
	
	Berwin

______________________________________________
R-help at r-project.org 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