couldn't find FUN

Paul Gilbert
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="/"))


   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
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: