Skip to content

Commit

Permalink
updated vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
rmflight committed Jun 5, 2013
1 parent ea6c7ff commit 2c99de7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions vignettes/timmysDensity_vignette.Rmd
Expand Up @@ -3,6 +3,12 @@
%\VignetteIndexEntry{Tim Horton's Density in Canada}
-->

# Tim Hortons Density

Inspired by this [post](http://www.ifweassume.com/2012/10/the-united-states-of-starbucks.html), I wanted to examine the locations and density of Tim Hortons restaurants in Canada. Using Stats Canada data, each census tract is queried on Foursquare for Tims locations.

## Setup

```{r dataOpts, message=FALSE}
options(stringsAsFactors=F)
require(timmysDensity)
Expand All @@ -12,11 +18,6 @@ require(ggplot2)
require(geosphere)
```


# Tim Hortons Density

Inspired by this [post](http://www.ifweassume.com/2012/10/the-united-states-of-starbucks.html), I wanted to examine the locations and density of Tim Hortons restaurants in Canada. Using Stats Canada data, each census tract is queried on Foursquare for Tims locations.

## Statistics Canada Census Data

The actual Statistics Canada data at the dissemination block level can be downloaded from [here](http://www.data.gc.ca/default.asp?lang=En&n=5175A6F0-1&xsl=datacataloguerecord&metaxsl=datacataloguerecord&formid=C87D5FDD-00E6-41A0-B5BA-E8E41B521ED0). You will want to download the Excel format, read it, and then save it as either tab-delimited or CSV using a non-standard delimiter, I used a semi-colon (;).
Expand Down

0 comments on commit 2c99de7

Please sign in to comment.