Posts Tagged ‘ Python ’

Apologies and Style Guides

August 13, 2010
By
Apologies and Style Guides

I have to say that it’s pretty exciting to watch your blog go from a few hits over its lifetime to getting almost 200 in a single day.  I am currently negotiating with Google over the purchase of this blog.  Or maybe not.  Again, thanks be to @revodavid for posting to the Revolution Analytics Blog.

Read more »

Why R doesn’t suck

June 19, 2010
By

I first encountered the R programming language a few years ago when I needed to make some plots. Although I’ve used it occasionally since, I always considered it a sort of “Perl for statisticians” — a useful swiss-army knife with … Continue reading →

Read more »

Connecting R and Python

May 7, 2010
By

There are a few ways to do this, but the only one that worked for me was to use Rserve and rconnect. In R, do this: 1 2 3 install.packages("Rserve") library(Rserve) Rserve(debug = FALSE, port=6311, args=NULL) Then you can connect in Python very easily. Here is a test in Python: 1 2 rcmd = pyRserve.rconnect(host='localhost', port=6311) print(rcmd('rnorm(100)'))

Read more »

Social Media Analytics Research Toolkit (SMART@znmeb) Is Moving Into Private Beta

March 31, 2010
By

Download "Getting Started with the Social Media Analytics Research Toolkit" (pdf, 1.25 megabytes) Download the Social Media Analytics Research Toolkit My Social Media Analytics Research Toolkit is about to move into private beta. What's in the release?...

Read more »

Be Careful Searching Python Dictionaries!

February 27, 2010
By
Be Careful Searching Python Dictionaries!

For my talk on High Performance Computing in R (which I had to reschedule due to a nasty stomach bug), I used Wikipedia linking data, an adjacency list of articles and the articles to which they link. This data was linked from DataWrangling and was originally created by Henry Haselgrove. The dataset is small on disk, but I needed...

Read more »

Python in Sweave document

February 9, 2010
By

Lately I have been using a lot of Python for signal processing and I quite like SciPy. However, I have been missing something like Sweave, which is great literate programming environment for R. Today I managed to look a bit more into it and found this hack on how to use Python code in Sweave

Read more »

Eight R Video Tutorials on VCASMO

February 4, 2010
By

Download "Getting Started with the Social Media Analytics Research Toolkit" (pdf, 1.25 megabytes) Download the Social Media Analytics Research Toolkit Thanks to Drew Conway (@drewconway), a PhD student at New York University, there are now eight excell...

Read more »

Learning R via Python…or the other way around (with video!)

January 8, 2010
By

Last night I was one of five speakers at the NYC R Statistical Programming Meetup. The topic last night was dubbed the R Rosetta Stone, and the intent was to show how R as a language translated into several other analytical platforms and programming languages. Other speakers covered MATLAB, SAS, SQL/Postges and Clojure/Incanter—I

Read more »

Top Five Open Source Projects of 2009

November 5, 2009
By

Every year, I single out what I think are the Top Five open source projects. This year, there's only one hold-over from previous years, and it's likely that I'm just going to give it a Lifetime Achievement Award and pick five others next year. 5. NetBe...

Read more »

R String processing

July 2, 2009
By
R String processing

Here's a little vignette of data munging using the regular expression facilities of R (aka the R-project for statistical computing). Let's say I have a vector of strings that looks like this:> coords "chromosome+:157470-158370" "chromosome+:1583...

Read more »