Re: [Rpy] a few high-level questions about rpy2 and a question about matrix indexing

2008-06-30 Thread Laurent Gautier
I didn't. I like the idea. Thanks, L. 2008/7/1 Michael Sorich <[EMAIL PROTECTED]>: > With regard to R indexing on the objects have you thought about using > the __getitem__ method of an attribute. > > E.g. python indexing m[:,1], r indexing m.r[:,2] > > class RIndex(object): >def __init

Re: [Rpy] a few high-level questions about rpy2 and a question about matrix indexing

2008-06-30 Thread Michael Sorich
With regard to R indexing on the objects have you thought about using the __getitem__ method of an attribute. E.g. python indexing m[:,1], r indexing m.r[:,2] class RIndex(object): def __init__(self, parent): self.parent = parent def __getitem__(self, index): return self.