Re: [Rpy] accessing data within a dataframe

2009-11-12 Thread Peter
On Thu, Nov 12, 2009 at 2:30 PM, Nick Schurch wrote: > OK, I'm still having issues with a related problem to the one I had before. > > The R package pvclust produces a list object. One of the entries in it is > ...$hclust$labels. I want to replace this with a list of my own and then > feed it inot

Re: [Rpy] accessing data within a dataframe

2009-11-12 Thread Nick Schurch
OK, I'm still having issues with a related problem to the one I had before. The R package pvclust produces a list object. One of the entries in it is ...$hclust$labels. I want to replace this with a list of my own and then feed it inot another r package. In R I would do... results=pvclust(mydata,

Re: [Rpy] accessing data within a dataframe

2009-10-20 Thread Nathaniel Smith
On Tue, Oct 20, 2009 at 5:01 AM, Nick Schurch wrote: > I have a dataframe called 'genedata' with columns like '$R', '$G' and > '$Genes' and I want to be able to pass a specific column as a > parameter to a new R function. I've had a look at the manual and I > think I should be using something like

Re: [Rpy] accessing data within a dataframe

2009-10-20 Thread Laurent Gautier
Bioconductor is using so-called "S4 objects" . Handling them in rpy2 is straightforward. L. PS: I am working on a bioconductor extension to rpy2, which may make the jump (even more) worthy. PPS: I had CLASS_CONVERSION issues in the past and did not manage to overcome them. Nick Schurch wrot

[Rpy] accessing data within a dataframe

2009-10-20 Thread Nick Schurch
HI all, I'm having some problems understanding how to access data inside a dataframe with rpy. I have a dataframe called 'genedata' with columns like '$R', '$G' and '$Genes' and I want to be able to pass a specific column as a parameter to a new R function. I've had a look at the manual and I thi