class: center, middle, inverse, title-slide # Data wrangling ## Coding style ### Ben Baumer ### SDS 192Sep 28, 2020(
http://beanumber.github.io/sds192/lectures/mdsr_wrangling_03-style.html
) --- ## Coding style  .footnote[https://xkcd.com/1513/] --- ## Literate Programming .pull-left[  ] .pull-right[ - [Don Knuth](https://en.wikipedia.org/wiki/Donald_Knuth) (1985) - code and natural language interspersed - we implement this in R Markdown ] --- ## Hadley's style guide [](http://adv-r.had.co.nz/Style.html) --- ## `styler` .footnote[https://github.com/r-lib/styler] .pull-left[ - Use the `styler` package! - Code style is about readability, accessibility ] .pull-right[  ] --- ## Who is Hadley? .footnote[https://en.wikipedia.org/wiki/Hadley_Wickham] .pull-left[  ] .pull-right[ - from New Zealand (like R) - Ph.D. statistics from Iowa St. (2008) - Chief Scientist at RStudio - author of many R packages, including... ] --- ## `tidyverse` .pull-left[ [](http://tidyverse.org) ] .pull-right[ - collection of packages that all fit together ]