Re: [Rpy] How to access aggregate date text?

2011-10-13 Thread Luca Beltrame
In data venerdì 14 ottobre 2011 04:07:36, William T. Martin ha scritto: > How do I access/capture the month headers? What kind of object is it? if it's a named vector, or similar (list, etc.), you can use the "names" attribute to get a vector of the names. -- Luca Beltrame, Ph.D. - Translational

[Rpy] How to access aggregate date text?

2011-10-13 Thread William T. Martin
How do I access the formatted month headers in an aggregated time series? z1 is a zooreg time series that I want to aggregate by month: ma = r.aggregate(z1, r['as.yearmon'], r.mean, **{'na.rm': True}) When I print the result vector, I get month/year information along with the mean values: >>>

[Rpy] Problem solved: Re: Running rpy2 under Apache using mod_wsgi?

2011-10-13 Thread William T. Martin
I fixed the problem I was having importing R libraries while running running rpy2 on an Apache server under mod_wsgi (Bottle). Instead of r.library("zoo") I need to use zoo=importr('zoo') Bill On 10/13/2011 1:00 PM, William T. Martin wrote: > Has anyone successfully run rpy2 on an

[Rpy] Running rpy2 under Apache using mod_wsgi?

2011-10-13 Thread William T. Martin
Has anyone successfully run rpy2 on an Apache server using mod_wsgi? I am using the rpy2 v.2.3.0 under Ubuntu. The base robjects work fine, but the rpy2 program hangs up on the first r.library() statement. Thank you --