Re: [Rpy] qt function and arguments

2009-02-04 Thread Laurent Gautier
[Just to stress that an issue similar to the one with NA_LOGICAL, fixed with 2.0.2, is *not* present here] 'FALSE' rather than False in the Python code is indeed the cause of the problem, but parameters in the signature of the function are not typed. 'FALSE' is passed to R as a string "FALSE",

Re: [Rpy] qt function and arguments

2009-02-04 Thread laurent oget
'FALSE' is a string, which somehow when converted to a boolean evaluates as True. How do you like: >>> kwargs={'df':25,'lower.tail':False} >>> print ro.r['qt'](0.05, **kwargs) [1] 1.708141 2009/2/4 Lindsey Bangay : > HI > > I am new to rpy2, but I would appreciate some assistance on this probl

[Rpy] qt function and arguments

2009-02-04 Thread Lindsey Bangay
HI I am new to rpy2, but I would appreciate some assistance on this problem I want to calculate the quantile of the t-distribution, using the upper tail: >>>import rpy2.robjects as ro >>>kwargs={'df':25,'lower.tail':'FALSE'} >>>print ro.r['qt'](0.05, **kwargs) but this is what I get : Warning m