Skip to content

Backtest trading strategies

2 messages · Pijus Virketis, Gabor Grothendieck

#
Much as I love R, I had occasion to contemplate its limitations vis-?-vis Python this weekend, when I had to scrape brutally malformed HTML and actually found it to be fairly painless thanks to BeautifulSoup (http://www.crummy.com/software/BeautifulSoup/). Reading through the neat code (a mere 1000 lines with comments), it seemed pretty clear that the R equivalent would be much more cumbersome (just the OO aspect would be hard to replicate, not to mention the libraries BeautifulSoup can count on). But thanks to Rpy (http://rpy.sourceforge.net/), one can have the best of all worlds! Use Python for general programming tasks and take advantage of existing libraries, use R for data analysis and visualisation, and have everything on the same page for maintainability and clarity.

Cheers, 

Pijus
#
On 11/28/05, Pijus Virketis <pvirketis at hbk.com> wrote:
I have not reviewed Beautiful Soup but regarding the comments on OO
there are four OO models available in R (S3, S4, the proto package and
the oo.R package) so I doubt there is much that can't be readily done in R
in the way of OO.
surely be preferable.