forked from batpigandme/tidynomicon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.Rmd
70 lines (59 loc) · 2.39 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
title: "The Tidynomicon"
subtitle: "A Brief Introduction to R for Python Programmers"
author: "Greg Wilson"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
documentclass: book
bibliography: [book.bib]
biblio-style: apalike
link-citations: yes
github-repo: gvwilson/tidynomicon
description: "The Tidynomicon"
---
# Introduction
```{r setup, include=FALSE}
source("etc/common.R")
```
```{r logo, echo=FALSE, out.width="100%", fig.align="center", fig.cap="Speak not of madness, oh you who count from zero."}
if (knitr::is_latex_output()) {
knitr::include_graphics("figures/index/cthulhu.pdf")
} else {
knitr::include_graphics("figures/index/cthulhu.svg")
}
```
Years ago,
Patrick Burns wrote *[The R Inferno][r-inferno]*,
a guide to R for those who think they are in hell.
Upon first encountering the language after two decades of using Python,
I thought Burns was an optimist---after all,
hell has rules.
I have since realized that R does too,
and that they are no more confusing or contradictory than those of other programming languages.
They only appear so because R draws on a tradition unfamiliar to those of us raised with derivatives of C.
Counting from one,
copying data rather than modifying it,
lazy evaluation:
to quote [the other bard][pratchett],
these are not mad, just differently sane.
Welcome, then, to a universe where the strange will become familiar,
and everything familiar, strange.
Welcome, thrice welcome, to R.
## Who are these lessons for? {#s:index-personas}
See @Wils2018 for a description of the lesson design process.
Andrzej
: completed a Master's in library science five years ago
and has worked since then for a small consulting company.
He learned Python by doing data science courses online,
but has no formal training in programming.
He just joined a team that primarily uses RMarkdown;
these lessons will show him how to translate his understanding of Python to R.
Padma
: has been building performance dashboards for a logistics company using Django and D3.
The company has just hired some data scientists who use R,
and who would like to rebuild some of those dashboards in Shiny.
Padma isn't a statistician,
but she's comfortable doing linear regression and basic time series analysis on web traffic,
and would like to learn enough about R to tidy up the analysts' code and get it into production.
```{r links, child="etc/links.md"}
```