A Draft of ProjectTemplate v0.2-1

December 3, 2010
By

I’ve just uploaded a new binary of ProjectTemplate to GitHub. This is a draft version of the next release, v0.2-1, which includes some fairly substantial changes and is backwards incompatible in several ways with previous versions of ProjectTemplate. Foremost of the changes is that most of the logic for load.project() is now built into the

Read more »

Fun with infochimps: Animated Blog Post Hit Map

December 3, 2010
By

In a few weeks I will be visiting Chicago, and JD Long—the organizer of the local R users group—has graciously invited me to give a presentation. Ostensibly, the presentation will be on my recently released infochimps package, so I thought it was a good time to start actually putting together some examples and documentation for

Read more »

Some ideas on communicating risks to the general public

December 3, 2010
By
Some ideas on communicating risks to the general public

SOME EMPIRICAL BASES FOR CHOOSING CERTAIN RISK REPRESENTATIONS OVER OTHERS This week DSN posts some thoughts (largely inspired by the work of former colleagues Stephanie Kurzenhäuser, Ralph Hertwig, Ulrich Hoffrage, and Gerd Gigerenzer) about communicating risks to the general public, providing references and delicious downloads where possible. Representations to use less often Single-event probabilities as

Read more »

Because it’s Friday: The 4th Amendment X-ray T-shirt

December 3, 2010
By
Because it’s Friday: The 4th Amendment X-ray T-shirt

Here's a clever way to express your objection to the obtrusiveness of the new backscatter X-ray scanners at airports: A T-shirt with the text of the 4th Amendment printed in metallic ink: Also available in underwear format. Cargo Collective: 4th Amendment Wear

Read more »

Why I love open source!

December 3, 2010
By
Why I love open source!

Today I had a great reminder of why I love open source software and why I spend a bit of my time contributing R code to several packages. In the vegan, I had included some code to do an analysis … Continue reading →

Read more »

Data Visualization Practices at the New York Times

December 3, 2010
By

Amanda Cox of the New York Times' graphics department recently gave a great presentation to the New Media Days conference in Copenhagen and described how the Times uses data visualizations to reveal patterns, provide context, describe relationships, and even create a sense of wonder about the world. In the video, Amanda demonstrates several of the Times' best interactive visualizations...

Read more »

Data Visualization Practices at the New York Times

December 3, 2010
By

Amanda Cox of the New York Times' graphics department recently gave a great presentation to the New Media Days conference in Copenhagen and described how the Times uses data visualizations to reveal patterns, provide context, describe relationships, and even create a sense of wonder about the world. In the video, Amanda demonstrates several of the Times' best interactive visualizations...

Read more »

formatR update (0.1-5)

December 3, 2010
By

he formatR package has been silent for quite a few months now. Recently I’ve been moving my old packages from R-Forge to GitHub, and I finally killed several things on my TODO list. In the past, I made an awkward decision to let formatR depend on the animation package, which was ridiculous. Ronggui suggested me

Read more »

Google, The Brew’s On Me

December 3, 2010
By
Google, The Brew’s On Me

While drinking these fine liquids may up your trip count to the john, they can also make your R reports better. Not because they allow you to reach your Ballmer Peak… but because each of these elixers is the direct result of brewing. Okay, I’m rea...

Read more »

Evolution of Rcpp code size

December 3, 2010
By
Evolution of Rcpp code size

I've been contributing to Rcpp for about a year now, initially to add missing bits that were needed for the development of RProtoBuf. This led to a complete redesign of the API, which now goes way beyond the initial code (that we now call c...

Read more »

Evolution of Rcpp code size

December 3, 2010
By
Evolution of Rcpp code size

I've been contributing to Rcpp for about a year now, initially to add missing bits that were needed for the development of RProtoBuf. This led to a complete redesign of the API, which now goes way beyond the initial code (that we now call c...

Read more »

Programming with R – Processing Football League Data Part II

December 3, 2010
By

Following on from the previous post about creating a football result processing function for data from the football-data.co.uk website we will add code to the function to generate a league table based on the results to date. To create the league table we need to count various things such as the number of games played, number

Read more »

Why I love open source!

December 3, 2010
By

Today I had a great reminder of why I love open source software and why I spend a bit of my time contributing R code to several packages.

Read more »

Google AI Challenge: Languages Used by the Best Programmers

December 2, 2010
By
Google AI Challenge: Languages Used by the Best Programmers

The Google AI Challenge recently wrapped up with a Lisp developer from Hungary as the winner.  The competition challenges contestants to create bots that push the limits of AI and game theory.  These bots compete against one another, and a complete ranking of competitors is available.  The big story today is...

Read more »

Google AI Challenge: Languages Used by the Best Programmers

December 2, 2010
By
Google AI Challenge: Languages Used by the Best Programmers

The Google AI Challenge recently wrapped up with a Lisp developer from Hungary as the winner.  The competition challenges contestants to create bots that push the limits of AI and game theory.  These bots compete against one another, and a complete ranking of competitors is available.  The big story today is...

Read more »

Méthodes de Monte-Carlo avec R

December 2, 2010
By
Méthodes de Monte-Carlo avec R

The translation of the book Introducing Monte Carlo Methods with R is close to being completed. The copy-editing and page-setting are done, I have received the cover proposal and am happy with it, so it should now go to production and be ready by early January, (earlier than the tentative end of February indicated on

Read more »

pgfSweave 1.1.0 now on CRAN!

December 2, 2010
By

The next release of pgfSweave is now on CRAN! It has been a while since I posted about pgfSweave and there have been some significant changes in the past couple of months. The main new features are: Automatic code highlighting via the highlight package. This can be turned off with the highlight option. “Tidying” of

Read more »

Another boring blog

December 2, 2010
By
Another boring blog

I recently decided to create two blogs as outlets for my research.  The first (The Richness of Life) focuses more on the organisms I work with as an ecologist and my general interest as a student of natural history.  This blog on Quantitative...

Read more »

R 101 at TDWI

December 2, 2010
By

Last month TDWI's James Powell interviewed Revolution CEO Norman Nie and published the interview as "R 101". The article answers some of the basic questions about R, such as: What is R? Why is R well-suited for predictive analytics? Why is R superior? How easy is it to learn R? Where is R headed? ... and much more. Read...

Read more »

R 101 at TDWI

December 2, 2010
By

Last month TDWI's James Powell interviewed Revolution CEO Norman Nie and published the interview as "R 101". The article answers some of the basic questions about R, such as: What is R? Why is R well-suited for predictive analytics? Why is R superior? How easy is it to learn R? Where is R headed? ... and much more. Read...

Read more »

R with Vim

December 2, 2010
By
R with Vim

For all those who think that Vim is The Editor for text files, and simultaneously think that R is The EnvironmentForStatisticalAnalysisAndGraphics. After trying out various options for intergrating Vim with R I settled on the following configuration: Use Vim-R-pluginfor editing R code files, R documentation files (*.Rd) as well as the Sweave files. Apart from

Read more »

Random variable generation (Pt 2 of 3)

December 2, 2010
By
Random variable generation (Pt 2 of 3)

Acceptance-rejection methods This post is based on chapter 1.4 of Advanced Markov Chain Monte Carlo. Another method of generating random variates from distributions is to use acceptance-rejection methods. Basically to generate a random number from , we generate a RN from an envelope distribution , where .  The acceptance-rejection algorithm is as follows: Repeat until

Read more »

Statistique de l’assurance STT6705V, partie 12

December 2, 2010
By
Statistique de l’assurance STT6705V, partie 12

The final course (since courses end this week in Montréal) can be watched here and there. The drawings from the course can be downloaded here (including last week's). First, to come back on last week's course , we considered Lee-carter model, i.e....

Read more »

Rd2roxygen: Convert Rd to roxygen documentation

December 1, 2010
By

must admit that I have been tired of maintaining my R packages for a long time, and the main reason is I feel really uncomfortable with writing R documentations (Rd). The required structure of an R package mainly includes two directories R and man — the former for the R source code (typically functions), and

Read more »

Recent developments in the drug war

December 1, 2010
By
Recent developments in the drug war

The Mexican government recently released data on all crime statistics from January 1997 to October 2010, as reported by the various police forces operating in Mexico. This information provides an unprecedented look at what has happened since the drug war began and allows for a frank assessment of the deterioration of security in Mexico.

Read more »

Recent developments in the drug war

December 1, 2010
By
Recent developments in the drug war

The Mexican government recently released data on all crime statistics from January 1997 to October 2010, as reported by the various police forces operating in Mexico. This information provides an unprecedented look at what has happened since the drug war began and allows for a frank assessment of the deterioration of security in Mexico.

Read more »

Online Resources for Learning R

December 1, 2010
By
Online Resources for Learning R

Online classes are an easy and convenient way to learn more about a topic of interest. Not surprisingly, there are a variety of online resources, free and otherwise, to learn more about R. From online graduate classes, to the more “learn at your own pace” approach, here are some resources I have found useful: Programming

Read more »

Le Monde puzzle [48]

December 1, 2010
By
Le Monde puzzle [48]

This week(end), the Le Monde puzzle can be (re)written as follows (even though it is presented as a graph problem): Given a square 327×327 symmetric matrix A, where each non-diagonal entry is in {1,2,3,4,5} and , does there exist a triplet (i,j,k) such that Solving this problem in R is very easy. We can create

Read more »

How to create PDF reports with R

December 1, 2010
By
How to create PDF reports with R

Sweave is a literate programming system included with R. It makes it possible to create a PDF document containing not just text, but also tables and charts generated from R. The process is automated, so once you've created an Sweave document (which includes both LaTeX text markup and R commands), you can create the formatted text and insert the...

Read more »