Skip to Content

Function of the day

Construct the path to a file from components in a platform-independent way.

Package of the day

This package implements a data structure similar to hashes in Perl and dictionaries in Python but with a purposefully R flavor. For objects of appreciable size, access using hashes outperforms native named lists and vectors.

Question of the day

On general request, a community wiki on producing latex tables in R. In this post I'll give an overview of the most commonly used packages and blogs with code for producing latex tables from less straight-forward objects. Please feel free to add any I missed, and/or give tips, hints and little tricks on how to produce nicely formatted latex tables with R.

Recent blog posts

5 hours 9 min ago
by Bob HortonSr. Data Scientist at Microsoft Common table expressions (CTEs, or “WITH clauses”) are a syntactic feature in SQL that makes it easier to write and use subqueries. They act as views or temporary tables that are only available during the lifetime of a single query. A more sophisticated feature is the “recursive CTE”, which is a common table expression that can call itself, providing a convenient syntax for recursive queries. This is very useful, for example, in following paths of links from record to record, as in graph traversal.
1 day 4 hours ago
R user David Lawrence Miller has created an extension for R's ggplot2 package that allows you to use emojis as plotting symbols. The emoGG package (currently only available on github) adds the geom_emoji geom to ggplot2, which uses an emoji code to identify the plotting symbol. For example: ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +  geom_emoji(emoji="1f337")
3 days 23 hours ago
This ball-moving machine, made out of Lego Mindstorms, gives a Rube Goldberg a run for the money:   This amazing contraption, built by a Japanese Lego enthusiast in 2012, moves one ball per second around a circuit of seventeen distinct modules. Set up in at the creator's home, it took 600 hours to build: that's about 2 months if you work 10 hours a day without a break, and that's a significant amount of space to dedicate in a Japanese home!

Featured How To

The following list of data sources has been modified as of 3/18/14. Most of the data sets listed below are free, however, some are not.