Upgrade to Pro — share decks privately, control downloads, hide ads and more …

第86回Tokyo.R初心者セッション:データ解析

 第86回Tokyo.R初心者セッション:データ解析

第86回Tokyo.R初心者セッションでトークした際のスライドです。

kilometer

June 27, 2020
Tweet

More Decks by kilometer

Other Decks in Technology

Transcript

  1. RStudio File > New File > R script (⌘ +

    ⇧ + N) Script Editor Console Files, Plots, Pkgs, ... Env., HIstoly, Git, ...
  2. RStudio File > New File > R script (⌘ +

    ⇧ + N) Script Editor Console Files, Plots, Pkgs, ... Env., HIstoly, Git, ... ≈ Run
  3. my_project my_project.Rproj .Rproj.user ~/Documents/R Auto saved working information (Unsaved edits,

    tab order, etc.) Project Root folder Workspace setting Project Folder Open RStudio
  4. my_project my_project.Rproj ~/Documents/R Project Folder data fig script.R data_raw data_all.csv

    dat <- read.csv("data/data_all.csv") Rela>ve path Project Root dat1.csv dat2.csv dat3.csv
  5. "Sandbox" in Python [python] version = "3.7" [packages] cycler==0.10.0 kiwisolver==1.1.0

    matplotlib==3.1.1 numpy==1.16.4 opencv-python==4.1.0.25 pandas==0.25.0 pyparsing==2.4.0 PypeR==1.1.2 ... [python] version = "2.7" [packages] numpy==1.16.4 ... cf. hEps://speakerdeck.com/kilometer/tokyo-dot-r-number-80-r-interface-to-python
  6. Exploratory Data Analysis "The Future of Data Analysis" Tukey, J.

    W., 1962 Three of the main strategies of data analysis are: 1. graphical presenta;on. 2. provision of flexibility in viewpoint and in facili;es, 3. intensive search for parsimony and simplicity. Brillinger, D. R., 2011
  7. Exploratory Data Analysis "The Future of Data Analysis" Tukey, J.

    W., 1962 "Exploratory Data Analysis" Tukey, J. W., 1970 "Exploratory data analysis isolates pa3erns and features of the data and reveals these forcefully to the analyst" "Exploratory data analysis’ is an a:tude, a state of flexibility, a willingness to look for those things that we believe are not there, as well as those we believe to be there" Brillinger, D. R., 2011
  8. Confirmatory (Hypothesis tes2ng) Exploratory Data analysis Tidy (needless to say)

    Un0dy Need to be thought of "2dy data" (because it isn't)
  9. The %dyverse style guide h"ps://style.,dyverse.org/ "Good coding style is like

    correct punctua,on: you can manage without it, bu,tsuremakesthingseasiertoread." Google's R Style Guide h"ps://style.,dyverse.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
  10. The %dyverse style guide h"ps://style.,dyverse.org/ "Good coding style is like

    correct punctua,on: you can manage without it, bu,tsuremakesthingseasiertoread." Google's R Style Guide h"ps://style.,dyverse.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