Hello Ding,
It appears that either you don't have numpy properly installed, or
that your copy of rpy was compiled without numpy support.
A simple workaround for this specific case would be to turn of
conversion of r to python objects, so that the object 'x' remains an
r matrix, rather than
Hi,
I was trying get the rpy to work but was stuck. Would you help us with
these simple rpy commands?
I did the following:
python
from rpy import r
x = r.matrix(r.rnorm(100), 50, 2)
r.kmeans(x, 2)
The error was:
Traceback (most recent call last):
File "", line 1, in ?
rpy.RException: Erro