Publications by erikr
Welcome to Blogistic Reflections! (A blog created entirely in Emacs org-mode)
John Tukey’s preface to Exploratory Data Analysis begins with a useful rule, “It is important to understand what you can do before you learn to measure how well you seem to have done it.” When I decided I wanted to start a blog concentrating on statistics, R, and Emacs, I thought I had better learn first what I can do to make the process of...
8379 sym R (1699 sym/3 pcs) 16 img
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 essential, function to master while pe...
2543 sym R (1802 sym/4 pcs) 16 img
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 I have been learning Emacs Lisp, I decided that a good idea would ...
1310 sym R (55 sym/1 pcs) 18 img
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 solution. The editing environment When writing a document, I usually want t...
1636 sym R (71 sym/2 pcs) 28 img
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 analyzing baseball data. Joseph u...
3015 sym R (5335 sym/2 pcs) 16 img
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 second buffer Makefile<2>. This i...
1385 sym R (63 sym/1 pcs) 16 img 1 tbl