Slide 1

Slide 1 text

BeginneR Session - Data Analysis - #78 Tokyo.R 2019.05.25 @kilometer00

Slide 2

Slide 2 text

Who

Slide 3

Slide 3 text

Who ⺲⯥ └兎 @kilometer 绷哅 َتغؠ (׆ֹֿׂעׂ׊) 㵠ꝛ 车Ⳃ烕磬熭㰢(ꧧꝎ걉) 聴ْؕ٭ة٤ء ⵳殴بتطّ䄄㰢 R塷 ~ 10䇗׃׼ַ 孱车: 㸓꫅

Slide 4

Slide 4 text

BeginneR Session

Slide 5

Slide 5 text

2018.04.21 Tokyo.R #69 BeginneR Session – Data import / Export 2018.06.09 Tokyo.R #70 BeginneR Session – Bayesian Modeling 2018.07.15 Tokyo.R #71 Landscape with R – the Japanese R community 2018.10.20 Tokyo.R #73 BeginneR Session – Visualization & Plot 2019.01.19 Tokyo.R #75 BeginneR Session – Data pipeline 2019.03.02 Tokyo.R #76 BeginneR Session – Data pipeline 2019.04.13 Tokyo.R #77 BeginneR Session – Data analysis

Slide 6

Slide 6 text

Slide 7

Slide 7 text

If I have seen further it is by standing on the shoulders of Giants. -- Sir Isaac Newton, 1676

Slide 8

Slide 8 text

Before After BeginneR Session

Slide 9

Slide 9 text

Data pipeline

Slide 10

Slide 10 text

Input Output Data Pipeline

Slide 11

Slide 11 text

packages

Slide 12

Slide 12 text

Input Output packages Data Pipeline

Slide 13

Slide 13 text

Output Input Input Data Pipeline

Slide 14

Slide 14 text

Output Input Input Data Pipeline

Slide 15

Slide 15 text

Output Input Input Data Pipeline

Slide 16

Slide 16 text

Data Pipeline

Slide 17

Slide 17 text

Data Pipeline

Slide 18

Slide 18 text

Data Pipeline readable coding

Slide 19

Slide 19 text

Programing Write Run Read Think

Slide 20

Slide 20 text

Run!!! https://www.amazon.co.jp/dp/B00Y0UI990/

Slide 21

Slide 21 text

Programing Write Run Read Think

Slide 22

Slide 22 text

Programing Write Run Read Think coding style

Slide 23

Slide 23 text

The tidyverse style guide https://style.tidyverse.org/ "Good coding style is like correct punctuation: you can manage without it, butitsuremakesthingseasiertoread." Google's R Style Guide https://style.tidyverse.org/ "The goal of the R Programming Style Guide is to make our R code easier to read, share, and verify." R coding style guides

Slide 24

Slide 24 text

The tidyverse style guide https://style.tidyverse.org/ "Good coding style is like correct punctuation: you can manage without it, butitsuremakesthingseasiertoread." Google's R Style Guide https://style.tidyverse.org/ "The goal of the R Programming Style Guide is to make our R code easier to read, share, and verify." R coding style guides

Slide 25

Slide 25 text

Programing Write Run Read Think Write Run Read Think Share

Slide 26

Slide 26 text

Text Figure Information Intention Data decode encode feedback Programing

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

data.frame

Slide 30

Slide 30 text

vector in Excel

Slide 31

Slide 31 text

vector in R in Excel )* )( , )* )* )( ,

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

pipe

Slide 37

Slide 37 text

1JQFBMHFCSB 0 0 0 0 {magrittr} րdplyr⫋⪌ꝛ㓹儖稴ցyutanihilation https://speakerdeck.com/yutannihilation/dplyrzai-ru-men-ji-ben-bian

Slide 38

Slide 38 text

{magrittr} ր僃鲣قؕو׊־䣒זיםַך׌ց րقؕوյֵ׿עַַ׻םזי ☽ס銧鏤ס☔׵氵؆ם䓙זיױ׌׻ց ր1䇗׃׼ַ־ׄי׹זׂ׽׆זה قؕوמبنع׊ױ׊גנց ք╈夻 䚁榫縖גהס㚜օ րRؤِٖؼطؔ㍋亠㸓鎇ցhttps://rlangradio.org/ 1JQF

Slide 39

Slide 39 text

Ζ Η Θ Ι % , , )(-* )-, Bring milk from the kitchen!

Slide 40

Slide 40 text

Ζ % , Bring milk from the kitchen! % , ( (, % , % ( (, , Η , ( (, * % ( (,

Slide 41

Slide 41 text

Bring milk from the kitchen! ( (, % , ( (, % , % ( (, , ( (, fridge, milk ( (, )(-* ( (, % % * -%, )-, ( (, % , % * -%, ( (, % , % , % , fridge, milk )(-* % % )-, % , % by using pipe, # Ζ # Η # Θ # Ι # Ζ # Η # Θ # Ι

Slide 42

Slide 42 text

{magrittr} # ׆ֹ傴׀ױ׌־ 536&*/ , , . * . * , , . * , , . * , . * , . * , , . * , , . * 536&065 5IJOLJOH 3FBEJOH 1JQFBMHFCSB

Slide 43

Slide 43 text

{magrittr} # pipe聴ךע׆ֹ傴׀ױ׌ն , , . * . * . * . * . * . * . * . * */ 065 1JQFBMHFCSB

Slide 44

Slide 44 text

demo..

Slide 45

Slide 45 text

Programing Write Run Read Think Write Run Read Think Communicate Share

Slide 46

Slide 46 text

verbs

Slide 47

Slide 47 text

It (dplyr) provides simple “verbs” to help you translate your thoughts into code. functions that correspond to the most common data manipulation tasks Introduction to dplyr https://cran.r-project.org/web/packages/dplyr/vignettes/dplyr.html WFSCT {dplyr}

Slide 48

Slide 48 text

dplyrעյֵםגס縒ֻ؅ؤ٭غמ緾錌 ׌׾ג״סքⳂ鍡օ؅䬠❠׌׾ն ظ٭ذ䳩⛼מֽׄ׾㓹儖ס؞؅յ ب٤وٜמ㲔车ך׀׾꞊丗 (紮) Introduction to dplyr https://cran.r-project.org/web/packages/dplyr/vignettes/dplyr.html WFSCT {dplyr} ־ם׽䙫錌

Slide 49

Slide 49 text

WFSCT {dplyr} -, , ؜ّٚס鴑ⱶ -, , , -'

Slide 50

Slide 50 text

WFSCT {dplyr} -, , ؜ّٚס鴑ⱶ , -, , -'

Slide 51

Slide 51 text

WFSCT {dplyr} % , ؜ّٚס鹟䥃 , % , ,

Slide 52

Slide 52 text

WFSCT {dplyr} %, * 车ס礓׽鱮ײ , %, * , '

Slide 53

Slide 53 text

-, , % , %, * ** ' - * # ؜ّٚס鴑ⱶ # ؜ّٚס鹟䥃 # 车ס礓׽鱮ײ # 车ס┾צ僀ֻ # ⡁ס꥗硜 {dplyr} WFSCT WFSCؔ਺܈

Slide 54

Slide 54 text

demo..

Slide 55

Slide 55 text

%(' , , * , 0 . % , , )* %(' , 0 . % Wide layout Long layout , * )* Data layout

Slide 56

Slide 56 text

-, , % , %, * ** ' - * # ؜ّٚס鴑ⱶ # ؜ّٚס鹟䥃 # 车ס礓׽鱮ײ # 车ס┾צ僀ֻ # ⡁ס꥗硜 {dplyr} WFSCT WFSCؔ਺܈

Slide 57

Slide 57 text

(SBNNBSPGEBUBNBOJQVMBUJPO By constraining your options, it helps you think about your data manipulation challenges. Introduction to dplyr https://cran.r-project.org/web/packages/dplyr/vignettes/dplyr.html

Slide 58

Slide 58 text

鹟䥃罈؅׌׾׆כךյ ظ٭ذ鉮冪סتطشو؅ ب٤وٜמ縒ֻ׼׿ױ׌ٙն ״זה׶䙫錌 Introduction to dplyr https://cran.r-project.org/web/packages/dplyr/vignettes/dplyr.html ױ׈מ䙫錌 (SBNNBSPGEBUBNBOJQVMBUJPO

Slide 59

Slide 59 text

׻׽㛡ׂס⯆硜؅鐐׌◄ךյ 놹ס餉凢־׼յ׻׽舅榺מם׾ն И ́ горь Ф Страви́нский Ⱏכ䙫錌

Slide 60

Slide 60 text

summary..

Slide 61

Slide 61 text

If I have seen further it is by standing on the shoulders of Giants. -- Sir Isaac Newton, 1676

Slide 62

Slide 62 text

Text Figure Information Intention Data decode encode feedback Programing

Slide 63

Slide 63 text

Programing Write Run Read Think Write Run Read Think Share

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

1JQFBMHFCSB 0 0 0 0 {magrittr} րdplyr⫋⪌ꝛ㓹儖稴ցyutanihilation https://speakerdeck.com/yutannihilation/dplyrzai-ru-men-ji-ben-bian

Slide 66

Slide 66 text

-, , % , %, * ** ' - * # ؜ّٚס鴑ⱶ # ؜ّٚס鹟䥃 # 车ס礓׽鱮ײ # 车ס┾צ僀ֻ # ⡁ס꥗硜 {dplyr} WFSCT WFSCؔ਺܈

Slide 67

Slide 67 text

׻׽㛡ׂס⯆硜؅鐐׌◄ךյ 놹ס餉凢־׼յ׻׽舅榺מם׾ն И ́ горь Ф Страви́нский Ⱏכ䙫錌

Slide 68

Slide 68 text

Before After BeginneR Session

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

* * *