Dear all,

I don't know much about R, but I now have to run R under Python. From a guy who 
has much experience with R but not know Python at all, I get the R statements I 
need:

> library("hwde")
> gdata <- data.frame(Population = c("P","P", "P", "N","N","N"), Observed = 
> c(691, 186, 0.5,468, 87, 17 ), locus1 = c("AA", "Aa", "aa", "AA", "Aa", "aa"))
> hwde(data = gdata)

Run the above in R, then I can get the results I need.

Python is my programming language, so I installed RPy. I have read the RPy 
manual for two days, but I still don't know how to translate these R statements 
to Python statements, because I am lack of the R knowledge and the RPy manual 
is hard for me.

Could you guys please help me out? Thanks so much in advance.

Regards,

Frank





      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to