On Sun, Oct 2, 2011 at 4:17 PM, Thomas Kluyver wrote:
> On 2 October 2011 20:47, W. Thornton Martin wrote:
>>
>> z_month = r.aggregate(z1, r['as.yearmon'], r.mean, r['na.rm']=True)
>>
>> The "na.rm" part does not work, however. What should the syntax be?
>
> I believe rpy2 converts . to _ to mak
On 2 October 2011 20:47, W. Thornton Martin wrote:
> z_month = r.aggregate(z1, r['as.yearmon'], r.mean, r['na.rm']=True)
>
> The "na.rm" part does not work, however. What should the syntax be?
>
I believe rpy2 converts . to _ to make things valid Python names. So try
with na_rm=True.
Thomas
--