Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 rypy2 中遇到了一些意想不到的行为:
ma / robjects.r.rowSums(ma)
其中 ma 是一个矩阵
抛出异常
Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported operand type(s) for /: 'Matrix' and 'FloatVector'
有什么帮助吗?
Python 运算符可能与 R运算符不同。
问题未提供一个独立的示例,但这应该有效
ma.ro / robjects.r.rowSums(ma)