Re: [Rd] sweep sanity checking?

From: Ben Bolker <bolker_at_ufl.edu>
Date: Mon, 09 Jul 2007 16:30:23 +0000 (UTC)

Ben Bolker <bolker <at> zoo.ufl.edu> writes:

> What would R-core think of the following 'enhanced'
> sweep?

 (now posted at
http://wiki.r-project.org/rwiki/doku.php?id=rdoc:base:sweep )

It always warns if dim(x)[MARGIN] is
> not a multiple of length(STATS) {it's very hard indeed
> for me to think of a situation where you'd actually
> want this}; if check.margin=TRUE it is a bit stricter,
> complaining whenever dim(x)[MARGIN] doesn't
> match length(STATS).
>
> This change seems fairly harmless since it never does anything
> more than warn; the default for check.margin could
> be FALSE if you wanted to allow people a bit more rope
> to hang themselves with ... (of course this won't prevent
> you from sweeping the wrong margin of a square matrix,
> but nothing will).
>
> cheers
> Ben Bolker
>

  Enough time has now passed that I feel justified following up on this. Does anyone have any opinions on it, one way or the other?

  Ben



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 09 Jul 2007 - 16:50:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 12 Jul 2007 - 02:36:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.