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
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.
I'm having problems using RPy to create a data.frame which is passed
to an R function.
The problem is that I need to initialize the data.frame with the
parameters in a specified order. The normal way, of doing
r.data_frame(MW=120.3, NUM_C=5, SMILES="c1n1")
does not work because the p