Python pyRserve data.frame-to-matrix转换

Python pyRserve data.frame-to-matrix转换,python,r,rserve,pyrserve,Python,R,Rserve,Pyrserve,我想我在pyRserve中发现了一个错误,但不知道在哪里报告它 当我使用pyRserve时,我可以按预期的方式得到R矩阵: import pyRserve con = pyRserve.connect(host = 'localhost') # this is a bug too in windows testMatrix = con.r("matrix(rnorm(10), ncol=2)") array([[ 1.01571435, 0.35465894], [-0.3620167

我想我在pyRserve中发现了一个错误,但不知道在哪里报告它

当我使用pyRserve时,我可以按预期的方式得到R矩阵:

import pyRserve
con = pyRserve.connect(host = 'localhost') # this is a bug too in windows
testMatrix = con.r("matrix(rnorm(10), ncol=2)")

array([[ 1.01571435,  0.35465894],
   [-0.36201676, -0.21100438],
   [-3.05266506,  1.49179003],
   [ 0.27192553,  1.51428093],
   [ 1.45269568,  0.57196333]])
但是,当我尝试对使用data.matrix转换的东西执行相同的操作时,我得到以下结果:

testMatrixConversion = con.r("data.matrix(iris)")
testMatrixConversion[1:10]
AttrArray([[ 5.4, 4.6, 5., 4.4, 4.9],
    [5.4,4.8,4.8,4.3,5.8],
...
它得到的尺寸是正确的,但是是按列而不是按行填充

有人知道怎么解决这个问题吗?或者至少如何向开发者报告

谢谢,;Kyle

使用pandas:)pyRserve有一个邮件列表,这是联系他们的方式: