Re: [Rd] scale(x, center=FALSE) (PR#14219)

From: Ben Bolker <>
Date: Thu, 04 Mar 2010 23:06:16 +0000 (UTC)

Ben Bolker <bolker <at>> writes:

 [re: behavior of scale() when center=FALSE and scale=TRUE]

> Again, I agree with you that the behavior is not optimal, but it is
> very hard to make changes in R when the behavior is sub-optimal rather
> than actually wrong (by some definition). R-core is very conservative
> about changes that break backward compatibility; I would like it if they
> chose to change the function to use standard deviation rather than
> root-mean-square, but I doubt it will happen (and it would break things
> for any users who are relying on the current definition).


> I have attached a patch
> file (and append the information below as well) that changes "standard
> deviation" back to "root mean square" and is much more explicit about
> this issue ... I hope R-core will jump in, critique it, and possibly use
> it in some form to improve (?) the documentation ...
> [PS: I have written that the scaling is equivalent to sd() "if and
> only if" centering was done. Technically it would also be equivalent if
> the column already had zero mean ...]

 (Bump re: suggested update to scale.Rd . Is this under consideration? I'll stop pestering if it's considered unacceptable, just don't want it to vanish without a trace ...) mailing list Received on Fri 05 Mar 2010 - 01:57:52 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 Fri 05 Mar 2010 - 11:00:57 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive