couldn't find FUN
Paul Gilbert
pgilbert@bank-banque-canada.ca
Fri, 21 Aug 1998 13:30:23 -0400
>> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._