Tokyo.R#78 BeginneRSession-Data analysis

Tokyo.R#78 BeginneRSession-Data analysis

第78回Tokyo.Rの初心者セッションで喋った内容です(demo codeは省略していますが隙があったら追加する予定です)。

8284465a94bbdf1ea82cf1a67d55f447?s=128

kilometer

May 25, 2019
Tweet

Transcript

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

  2. Who

  3. Who ⺲⯥ └兎 @kilometer 绷哅 َتغؠ (׆ֹֿׂעׂ׊) 㵠ꝛ 车Ⳃ烕磬熭㰢(ꧧꝎ걉) 聴ْؕ٭ة٤ء

    ⵳殴بتطّ䄄㰢 R塷 ~ 10䇗׃׼ַ 孱车: 㸓꫅
  4. BeginneR Session

  5. 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
  6.  

  7.       If I have seen

    further it is by standing on the shoulders of Giants. -- Sir Isaac Newton, 1676
  8. Before After BeginneR Session    

  9. Data pipeline

  10. Input Output Data Pipeline

  11. packages 

  12. Input Output packages Data Pipeline

  13. Output Input Input Data Pipeline

  14. Output Input Input Data Pipeline

  15. Output Input Input Data Pipeline

  16. Data Pipeline

  17. Data Pipeline

  18. Data Pipeline readable coding

  19. Programing Write Run Read Think

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

  21. Programing Write Run Read Think

  22. Programing Write Run Read Think coding style

  23. 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
  24. 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
  25. Programing Write Run Read Think Write Run Read Think Share

  26. Text Figure Information Intention Data decode encode feedback Programing

  27. None
  28. None
  29. data.frame

  30. vector in Excel

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

    )( ,
  32. None
  33. None
  34. None
  35. None
  36. pipe

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

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

  39. Ζ Η Θ Ι % , , )(-* )-, Bring

    milk from the kitchen!
  40. Ζ % , Bring milk from the kitchen! % ,

    ( (, % , % ( (, , Η , ( (, * % ( (,
  41. Bring milk from the kitchen! ( (, % , (

    (, % , % ( (, , ( (, fridge, milk ( (, )(-* ( (, % % * -%, )-, ( (, % , % * -%, ( (, % , % , % , fridge, milk )(-* % % )-, % , % by using pipe, # Ζ # Η # Θ # Ι # Ζ # Η # Θ # Ι
  42. {magrittr} # ׆ֹ傴׀ױ׌־ 536&*/ , , . * . *

    , , . * , , . * , . * , . * , , . * , , . * 536&065 5IJOLJOH 3FBEJOH 1JQFBMHFCSB
  43. {magrittr} # pipe聴ךע׆ֹ傴׀ױ׌ն , , . * . * .

    * . * . * . * . * . * */ 065 1JQFBMHFCSB
  44. demo..

  45. Programing Write Run Read Think Write Run Read Think Communicate

    Share
  46. verbs

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

    {dplyr}  ־ם׽䙫錌
  49. WFSCT {dplyr} -, , ؜ّٚס鴑ⱶ  -, , , -'

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

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

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

  53. -, , % , %, * ** ' - *

    # ؜ّٚס鴑ⱶ # ؜ّٚס鹟䥃 # 车ס礓׽鱮ײ # 车ס┾צ僀ֻ # ⡁ס꥗硜 {dplyr} WFSCT WFSCؔ਺܈
  54. demo..

  55. %(' , , * , 0 . % , ,

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

    # ؜ّٚס鴑ⱶ # ؜ّٚס鹟䥃 # 车ס礓׽鱮ײ # 车ס┾צ僀ֻ # ⡁ס꥗硜 {dplyr} WFSCT WFSCؔ਺܈
  57. (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
  58. 鹟䥃罈؅׌׾׆כךյ ظ٭ذ鉮冪סتطشو؅ ب٤وٜמ縒ֻ׼׿ױ׌ٙն ״זה׶䙫錌 Introduction to dplyr https://cran.r-project.org/web/packages/dplyr/vignettes/dplyr.html  ױ׈מ䙫錌

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

           Ⱏכ䙫錌
  60. summary..

  61.       If I have seen

    further it is by standing on the shoulders of Giants. -- Sir Isaac Newton, 1676
  62. Text Figure Information Intention Data decode encode feedback Programing

  63. Programing Write Run Read Think Write Run Read Think Share

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

  66. -, , % , %, * ** ' - *

    # ؜ّٚס鴑ⱶ # ؜ّٚס鹟䥃 # 车ס礓׽鱮ײ # 车ס┾צ僀ֻ # ⡁ס꥗硜 {dplyr} WFSCT WFSCؔ਺܈
  67. ׻׽㛡ׂס⯆硜؅鐐׌◄ךյ 놹ס餉凢־׼յ׻׽舅榺מם׾ն   И ́ горь Ф Страви́нский 

           Ⱏכ䙫錌
  68. Before After BeginneR Session    

  69. None
  70. * * *