From pgilbert at bank-banque-canada.ca  Thu Nov  3 18:09:13 2005
From: pgilbert at bank-banque-canada.ca (Paul Gilbert)
Date: Thu, 03 Nov 2005 12:09:13 -0500
Subject: [Rd] proposal to make loadings() generic in R-devel
Message-ID: <436A4439.201@bank-banque-canada.ca>

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



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