对于 R 中的列表,$ 相当于使用长度为 1 的向量的 [[: foo$bar 等价于 foo[["bar"]]。在 rpy2 中,可以用 foo.rx2('bar') 或 foo[foo.index('bar')] 来实现相同的功能(参见提取元素,R 风格)。