How do I pass na.rm=True to a function?
I have this R expression:
z.month <- aggregate(z1, as.yearmon, mean, na.rm=True)
[z1 is a list of zooreg timeseries objects]
For the rpy2 code, I think the above should be:
from lxml import etree
r.library('zoo')
r=robjects.r
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?
Thank you
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list