Slide 1

Slide 1 text

Teaching data science with puzzles useR! 2019 Irene Steves i_steves isteves 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 [still unreleased!]

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

Slide 10

Slide 10 text

Wrangling Workflow

Slide 11

Slide 11 text

Web-based experience Language & platform agnostic

Slide 12

Slide 12 text

R-mediated experience Workflow

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

New R Project

Slide 15

Slide 15 text

Auto-generated table of contents

Slide 16

Slide 16 text

@JennyBryan

Slide 17

Slide 17 text

Paths that work in the console & when rendered Knittable .R file Omit tidyverse messages from html output

Slide 18

Slide 18 text

The neighborhood deli makes amazing sandwiches--from classics like BLTs to dessert sandwiches like Fluffernutters. Since many of their specialty ingredients keep going bad, they've decided to cut their selection and focus on their best-selling sandwich. Photo: flickr skywhisperer

Slide 19

Slide 19 text

To help with the decision, the storeowners collected data on their customers’ favorites. 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 20

Slide 20 text

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

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Photo: Wikipedia

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

Beyond the Test cases Consistent and parseable names Projects & version control Self-contained code

Slide 27

Slide 27 text

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