Re: [Rpy] Newbie Question on Passing Parameters from RPy to R

2007-06-19 Thread Michael Grollman
Greg / Kevin, Thanks, each of the solution's works. Much appreciated. This one appears to need a minor tweak, from: import rpy rpy.r.library("pwr") rpy.r.pwr_p_test(h=0.2,power=0.95,sig.level=0.05) to ... sig_level=0.05... Which makes sense, given Greg's explanation

Re: [Rpy] Newbie Question on Passing Parameters from RPy to R

2007-06-19 Thread Gregory Warnes
Hi Michael, The trick here is that r['...'] expects the ... to be an object name, rather than a statement to be executed. The brackets following the name 'r' is shorthand for 'obtain the object named ... from r', which can also be expressed as, r.get('...') RPy provides a similar s