Hi all,
With R function

test <- function (a1,a2){
    print(a1)
    print(a2)
}

When I make the call

r.test({'a':0}, {'a':1, 'b':{'c':0,'d':1}})

I see

a
0
$a
[1] 1

$b
c d
0 1

but I would like to see

$a
[1] 0

$a
[1] 1

$b
$b$c
[1] 0

$b$d
[1] 1

that is, I would like the nested Python dictionary

{'a':1, 'b':{'c':0,'d':1}}

to be converted to the nested R list

list('a'=1,'b'=list('c'=0,'d'=1))

Is it possible to change a configuration file and make this RPy's default
behavior? Sorry if this is documented somewhere, I didn't find it. I'm using
the svn head of RPy 1.

Thanks,
Anand Patil
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to