2114 search results for "twitter"

Kicking Ass with plyr

October 29, 2009
By
Kicking Ass with plyr

Tonight (October 29, 2009) at 5:30 PM is the Chicago R meetup at Jaks tap. Here’s more info.  I’ll be making a presentation based on my earlier blog post about plyr. The presentation will only be 8 minutes long so I’ve had to pick and choose my info carefully. OK, who am I kidding? I

Read more »

Aggreate electoral targeting with R

October 22, 2009
By
Aggreate electoral targeting with R

Aggregate electoral targeting is the process of determining the likely hood of a citizen choosing to vote turnout), and which candidate that person is most likely to vote for (partisan bias) in a given race using historical turnout and partisan bias. The output from this targeting allows a campaign to project the likely number of voters, what percentages their...

Read more »

ggplot2: Two Color XY-Area Combo Chart

October 21, 2009
By
ggplot2: Two Color XY-Area Combo Chart

David@Work blog shows how to fill in the area between two crossing lines in an Excel chart. This post was also published as a guest-post on PTS blog. Let’s try to replicate this graph in ggplot2. First, load ggplot2 and generate the data frame to be used in the example (I am using a slightly

Read more »

Software for Surviving Graduate School Part 1

October 16, 2009
By
Software for Surviving Graduate School Part 1

After introducing a colleague to the wonders of Dropbox today (more on that later) I realized that it might be useful to put out a list of software that is of use to graduate students. I often find that many of the software products I find indispensable are virtually unknown to many of my fellow graduate students. Certainly this...

Read more »

Making Emacs Buffer Names Unique Using the Uniquify Package

October 5, 2009
By
Making Emacs Buffer Names Unique Using the Uniquify Package

If you ever work in Emacs with different files that all have the same name, this tip may be very useful for you. In my experience, this most often happens when working with Makefiles from multiple projects or directories. Assuming you have a buffer visiting a file called Makefile, by default Emacs will call the

Read more »

Using R to Analyze Baseball Games in “Real Time”

October 4, 2009
By
Using R to Analyze Baseball Games in “Real Time”

In order to honor the last day of the 2009 MLB regular season (excepting the Twins/Tigers tiebreaker Tuesday night), I was reading a book that combines a few of my favorite thing: statistics, R, and baseball. The book, by Joseph Adler, is called Baseball Hacks, and I highly recommend it if you are interested in

Read more »

Using doc-view with auto-revert to view LaTeX PDF output in Emacs

October 3, 2009
By
Using doc-view with auto-revert to view LaTeX PDF output in Emacs

When I am authoring a document in Emacs, such as a report or my CV, it is useful for me to compile the source file periodically to see what the resulting file PDF looks like. I used to run a separate PDF viewer to look at the output, but I now have a complete Emacs

Read more »

R Object Tooltips in ESS

October 1, 2009
By
R Object Tooltips in ESS

Whether at work or for personal projects, I use ESS a lot to perform interactive data analyses. The ability to write, edit, and submit R commands to an interactive R process is simply something I cannot imagine analyzing data without. An example One thing that I end up having to do a lot is inspect

Read more »

Emacs Key Binding for eval-defun in lisp-mode

September 22, 2009
By
Emacs Key Binding for eval-defun in lisp-mode

When I use R in Emacs through the ESS package, C-c C-c in a .R buffer will send a “block” of code to the inferior R process for evaluation. This was added just a few years ago, but my fingers are now trained to use that key combination for evaluating any block of code. Since

Read more »

R Function of the Day: table

September 21, 2009
By
R Function of the Day: table

The R Function of the Day series will focus on describing in plain language how certain R functions work, focusing on simple examples that you can apply to gain insight into your own data. Today, I will discuss the table function. What situation is table useful in? The table function is a very basic, but

Read more »