From pgilbert@bank-banque-canada.ca  Fri Aug 21 18:30:23 1998
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Fri, 21 Aug 1998 13:30:23 -0400
Subject: couldn't find FUN
References: <98Aug21.122130edt.13441@mailgate.bank-banque-canada.ca>
Message-ID: <98Aug21.133236edt.13450@mailgate.bank-banque-canada.ca>

>> data(crimes)
>> prcomponents(crimes)
>Error: couldn't find function "FUN"

This does not work in 0.62.2 as I previously reported. The error is associated
with using
data(crimes) which is not what I've usually done. It is fixed by replacing

   s <- svd(sweep(sweep(x,2, center),2, scale, FUN="/"))

with

   s <- svd(sweep(sweep(as.matrix(x),2, center),2, scale, FUN="/"))

So, I'm not sure if this is a bug or if this is the way it should work? For my
purposes it is fixed already.

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


couldn't find FUN
Paul Gilbert