How to create an empty R vector to add new items

前端 未结 7 836
再見小時候
再見小時候 2020-12-07 10:42

I want to use R in Python, as provided by the module Rpy2. I notice that R has very convenient [] operations by which you can extract the specific columns or li

7条回答
  •  情深已故
    2020-12-07 11:18

    In rpy2, the way to get the very same operator as "[" with R is to use ".rx". See the documentation about extracting with rpy2

    For creating vectors, if you know your way around with Python there should not be any issue. See the documentation about creating vectors

提交回复
热议问题