Skip to content

scale

3 messages · Martin Maechler, Paul Gilbert

#
I am cleaning up a few pieces of my DSE library and I realized I am still
overriding scale to make it generic with the base version as the default. I use
scale methods for data objects which are not simple matrices. Could scale in the
base be made generic?

Paul Gilbert

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
PaulG> I am cleaning up a few pieces of my DSE library and I realized I
    PaulG> am still overriding scale to make it generic with the base
    PaulG> version as the default. I use scale methods for data objects
    PaulG> which are not simple matrices. Could scale in the base be made
    PaulG> generic?
it could..

      scale (x, center = TRUE, scale = TRUE)  

Is it okay to require the center and scale argument for all methods?

Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Martin> Is it okay to require the center and scale argument for all
methods?

Unfortunately, no, not the way I have used it. (One of the ways I use it
is for a structure called TSdata that has two data matrices. I
eventually call the default with a center and scale for each matrix, but
the original call is scale(x, scale), where scale is a list with a
center and scale value for each matrix.) My methods always use the
argument scale, but not center.

Paul

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._