1

我想我在 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],
...

它使尺寸正确,但按列而不是按行填充它们。

有人知道怎么修这个东西吗?或者至少如何向开发人员报告?

谢谢; 凯尔

4

0 回答 0