Re: [Rpy] R "list" with rpy2

2010-12-20 Thread Laurent
On 20/12/10 17:18, Peter wrote: > On Mon, Dec 20, 2010 at 3:27 PM, Luca Beltrame wrote: >> Hello, >> >> As I'm working with R's lists and porting some code away from R to Python, >> I'd >> like to know if they can be replaced with a named vector (which is what a R >> list essentially is, to my un

Re: [Rpy] R "list" with rpy2

2010-12-20 Thread Peter
On Mon, Dec 20, 2010 at 3:27 PM, Luca Beltrame wrote: > Hello, > > As I'm working with R's lists and porting some code away from R to Python, I'd > like to know if they can be replaced with a named vector (which is what a R > list essentially is, to my untrained eye). For example: > > in R > > my.

[Rpy] R "list" with rpy2

2010-12-20 Thread Luca Beltrame
Hello, As I'm working with R's lists and porting some code away from R to Python, I'd like to know if they can be replaced with a named vector (which is what a R list essentially is, to my untrained eye). For example: in R my.list <- list(a="some.value", b="another.value") in Python I would