[Rd] proposal to make loadings() generic in R-devel

From: Paul Gilbert <pgilbert_at_bank-banque-canada.ca>
Date: Thu 03 Nov 2005 - 17:09:13 GMT

I propose that loadings() be made generic in R-devel with definition

    loadings <- function(x, ...) UseMethod("loadings")

    loadings.default <- function(x, ...) x$loadings

The default is the current definition of loadings with the ... argument added.

The current definition is not specific about the returned value, though $loadings may usually be a matrix. I'm not sure what would be broken if a more strict definition of the return value is enforced. For my purposes a matrix is fine, but I am not sure that there is a benefit from imposing that the returned value must be a matrix, so I suggest sticking with the current non-specific structure for the return value. (For piecewise linear or other non-linear analysis there may be good reasons to allow more general structures for the loadings.)

Paul Gilbert

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Nov 04 04:19:14 2005

This archive was generated by hypermail 2.1.8 : Thu 03 Nov 2005 - 20:21:49 GMT