Re: [Rpy] getting the Nth row of a data_frame

2007-01-05 Thread Gregory. R. Warnes
You should be able to use something like: > from rpy import * > set_default_mode(NO_CONVERSION) > d = r.data_frame(a=(1,2,3), b=(71,72,73)) > getRow = r("function(d, i) d[i,,drop=FALSE]") > r1 = getRow(d,1) -Greg On Jan 4, 2007, at 5:28 PM, BORGULYA Gábor wrote: > Dear All, > > Could someone t

[Rpy] annotate.py RPy script

2007-01-05 Thread Tom Asbury
Hello - Below is a simple script to grab annotation data from R packages and dump it into a Python dictionary, where all sorts of interesting things can be done. You end up with the data structures: probes[] holds the probeIDs dict[] holds the annotation data for each probe e.g.: dict['GO'][0]