Hi everybody! I am trying to use the R-function princomp (or prcomp, I tried both, but I get the same error anyway) in order to apply principal component analysis to my data.
Now, this works fine: let yoyoL be a list of lists : yoyoL = [ [0.0592, 0.0126, 0.08351, 0.01857, 0.02188], [ ... ], ... ] mat = r.matrix(r.unlist(yoyoL), nrow=5, byrow=True) pca = r.princomp(r.t(mat), cor=True) Okay, this works. But if I want to use the predict functionality of princomp, like: pred = r.predict(pca) I obtain the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> rpy.RException: Error in UseMethod("predict") : no applicable method for "predict" Does anybody know how I could deal with this problem? Thank you very much! Thomas. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list