Re: [Rpy] making a data.frame with parameters in a fixed order

2008-05-06 Thread Andrew Dalke
On Apr 29, 2008, at 5:03 PM, Gregory Warnes wrote: > There are a couple of solutions. One, as you describe, is to > construct an R expression in a string and have R evaluate the > string. Another solution is to create the data frame object > without names, then add the names in a separate

Re: [Rpy] making a data.frame with parameters in a fixed order

2008-04-29 Thread Gregory Warnes
Hello Andrew, The basic problem you are encountering is that python uses a dictionary to store named parameters to function calls. Python's dictionaries don't preserve order, just name-value correspondence. As a consequence calling an R function with named arguments loses the ordering.