Hello, As I'm working with R's lists and porting some code away from R to Python, I'd like to know if they can be replaced with a named vector (which is what a R list essentially is, to my untrained eye). For example:
in R my.list <- list(a="some.value", b="another.value") in Python I would use: my_list = robjects.StrVector(["some.value", "another.value"]) my_list.names = ["a", "b"] Is this the right approach or is there a better way? -- Luca Beltrame, Ph.D. - luca.beltr...@unifi.it Post-doctoral research fellow - Duccio Cavalieri group Department of Pharmacology, University of Firenze
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list