Skip to content
Snippets Groups Projects
Commit 39042c2f authored by jennybc's avatar jennybc
Browse files

use github_document format

parent 01a36597
No related branches found
No related tags found
No related merge requests found
---
output:
md_document:
variant: markdown_github
output: github_document
---
[![DOI](https://zenodo.org/badge/16122/jennybc/gapminder.svg)](http://dx.doi.org/10.5281/zenodo.21971) [![CRAN version](http://www.r-pkg.org/badges/version/gapminder)](http://cran.r-project.org/package=gapminder) ![](http://cranlogs.r-pkg.org/badges/grand-total/gapminder)
......
[![DOI](https://zenodo.org/badge/16122/jennybc/gapminder.svg)](http://dx.doi.org/10.5281/zenodo.21971) [![CRAN version](http://www.r-pkg.org/badges/version/gapminder)](http://cran.r-project.org/package=gapminder) ![](http://cranlogs.r-pkg.org/badges/grand-total/gapminder)
gapminder
......@@ -71,7 +72,7 @@ ggplot(gapminder, aes(x = continent, y = lifeExp)) +
geom_jitter(position = position_jitter(width = 0.1, height = 0), alpha = 1/4)
```
![](README_files/figure-markdown_github/test-drive-1.png)
![](README_files/figure-markdown_github/test-drive-1.png)
### Color schemes for countries and continents
......@@ -113,7 +114,7 @@ ggplot(subset(gapminder, continent != "Oceania"),
## instead.
```
![](README_files/figure-markdown_github/demo-country-colors-ggplot2-1.png)
![](README_files/figure-markdown_github/demo-country-colors-ggplot2-1.png)
### How to use color scheme in base graphics
......@@ -133,7 +134,7 @@ plot(lifeExp ~ gdpPercap, gap_with_colors,
bg = gap_with_colors$cc[keepers])
```
![](README_files/figure-markdown_github/demo-country-colors-base-1.png)
![](README_files/figure-markdown_github/demo-country-colors-base-1.png)
### What is `gapminder` good for?
......
---
title: "Data cleaning"
output:
md_document:
variant: markdown_github
output: github_document
---
I explicitly use this package to teach data cleaning, so have refactored my old cleaning code into several scripts. I also include them as compiled Markdown reports. Caveat: these are realistic cleaning scripts! Not the highly polished ones people write with 20/20 hindsight :) I wouldn't necessarily clean it the same way again (and I would download more recent data!), but at this point there is great value in reproducing the data I've been using for ~5 years.
......
Data cleaning
================
I explicitly use this package to teach data cleaning, so have refactored my old cleaning code into several scripts. I also include them as compiled Markdown reports. Caveat: these are realistic cleaning scripts! Not the highly polished ones people write with 20/20 hindsight :) I wouldn't necessarily clean it the same way again (and I would download more recent data!), but at this point there is great value in reproducing the data I've been using for ~5 years.
Cleaning history
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment