Slide 1

Slide 1 text

Teaching data science with puzzles rstudio::conf 2019 Irene Steves i_steves isteves irene.rbind.io bit.ly/ds-puzzles

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Unique puzzle input Answer submission Puzzle text

Slide 4

Slide 4 text

I solved these with R, but boy was it clunky!

Slide 5

Slide 5 text

Let’s make puzzles that highlight what R/the tidyverse are good at!

Slide 6

Slide 6 text

Bite-sized puzzles that focus on core data science skills as championed by the tidyverse set of packages march tidies of

Slide 7

Slide 7 text

SOOTHSAYER. Beware the ides of March. CAESAR. What man is that? BRUTUS. A soothsayer bids you beware the ides of March. CAESAR. Set him before me; let me see his face. CASSIUS. Fellow, come from the throng; look upon Caesar. CAESAR. What say'st thou to me now? Speak once again. SOOTHSAYER. Beware the ides of March. CAESAR. He is a dreamer; let us leave him. The Death of Julius Caesar, Vincenzo Camuccini 1771-1844

Slide 8

Slide 8 text

Photo: flickr clement127

Slide 9

Slide 9 text

Wrangling Workflow

Slide 10

Slide 10 text

march tidies of Workflow

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

New R Project

Slide 13

Slide 13 text

@JennyBryan

Slide 14

Slide 14 text

Pre-populated file path here::here() for defining the path Knittable .R file Omit tidyverse messages from html output

Slide 15

Slide 15 text

Auto-generated table of contents

Slide 16

Slide 16 text

The neighborhood sandwich store makes the best sandwiches! They’ve got everything from classics like BLTs to more unusual options like Fluffernutters. Since many of their specialty ingredients keep going bad, they've decided to cut their selection and only focus on their best- selling sandwich. Photo: flickr skywhisperer

Slide 17

Slide 17 text

To help with the decision, the storeowners have collected data on their customers’ favorite sandwiches. Most people listed several varieties (in no particular order). Here’s a sample of the data: In this sample, the Dagwood sandwich is the most popular. In the full dataset, what is the most popular sandwich among the customers?

Slide 18

Slide 18 text

In this sample, the Dagwood sandwich is the most popular.

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

Photo: Wikipedia

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Beyond the Test cases Parseable and predictable file & folder names Projects & git Reproducible code*

Slide 25

Slide 25 text

Thank you! Irene Steves i_steves isteves irene.rbind.io bit.ly/ds-puzzles