How would I go about creating an R matrix from a numpy matrix using rpy2?
I've tried robjects.r.matrix([the numpy matrix])
but it doesn't work with a np matrix (or array).
Asked
Active
Viewed 782 times
2

dave
- 12,406
- 10
- 42
- 59
-
2I think this question addresses yours: http://stackoverflow.com/questions/2447454/converting-python-objects-for-rpy2 – Seth Jun 04 '12 at 01:06