# Monthly Archives: November 2012

## Representing density in two dimensions

November 21, 2012
By

I’ll be subbing today for Chris, as we continue to explore some ggplot2 basics. Today, imagine that you have data distributed in two dimensions, and that you would like to convey differences in point density over space. As with many things, this...

## Creating an R package in Windows

November 21, 2012
By

A nice package can be both beautiful and functional. The image is CC by MIAD Communication Design. Inspired by Read more »

## Fun with coin flips

November 21, 2012
By

We all know that the odds of flipping an unbiased coin is 50% heads, 50% tails. But what happens if you do this a lot of times. Do you expect the same number of heads and tails? What if we took a cumulative sum where heads = +1 and tails = -1. What wou...

## Fun with coin flips

November 21, 2012
By

We all know that the odds of flipping an unbiased coin is 50% heads, 50% tails. But what happens if you do this a lot of times. Do you expect the same number of heads and tails? What if we took a cumulative sum where heads = +1 and tails = -1. What wou...

## Video: SimpleR tricks and tools: Help, debugging, git, LaTeX, and workflow with R by Prof Rob Hyndman

November 21, 2012
By

This post shares the video from a talk presented on 20th November 2012 by Professor Rob Hyndman at Melbourne R Users. The talk provides an introduction to: Getting R help Debugging R functions R style guides Making good use of … Continue reading →

## Rcpp attributes: A simple example ‘making pi’

November 20, 2012
By

We introduced Rcpp 0.10.0 with a number of very nice new features a few days ago, and the activity on the rcpp-devel mailing list has been pretty responsive which is awesome. But because few things beat a nice example, this post tries to build some more excitement. We will illustrate how Rcpp attributes makes it really easy to add C++ code...

## Rcpp attributes: A simple example ‘making pi’

November 20, 2012
By

We introduced Rcpp 0.10.0 with a number of very nice new features a few days ago, and the activity on the rcpp-devel mailing list has been pretty responsive which is awesome. But because few things beat a nice example, this post tries to build some more excitement. We will illustrate how Rcpp attributes makes it really easy to add C++ code...

## Rcpp attributes: A simple example ‘making pi’

November 20, 2012
By

We introduced Rcpp 0.10.0 with a number of very nice new features a few days ago, and the activity on the rcpp-devel mailing list has been pretty responsive which is awesome. But because few things beat a nice example, this post tries to build some...

## R User Conference in Spain: Call for Tutorials

November 20, 2012
By

I'm really looking forward to useR! 2013 (the international conference for R users), and not just because it's being held in Spain next year (July 10-12). The program is already coming together, with a great lineup of invited speakers, including R-core member Duncan Murdoch and prolific package authoR Hadley Wickham. You too can be part of the program, by...

## optimising accept-reject

November 20, 2012
By
$optimising accept-reject$

I spotted on R-bloggers a post discussing optimising the efficiency of programming accept-reject algorithms. While it is about SAS programming, and apparently supported by the SAS company, there are two interesting features with this discussion. The first one is about avoiding the dreaded loop in accept-reject algorithms. For instance, taking the case of the truncated-at-one