Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

03. Functions #11

Open
19 tasks
briatte opened this issue Jul 3, 2017 · 0 comments
Open
19 tasks

03. Functions #11

briatte opened this issue Jul 3, 2017 · 0 comments

Comments

@briatte
Copy link
Owner

briatte commented Jul 3, 2017

  • 3.0 Functions, e.g.
    • Math
    • Data
    • Models – introduce formula notation
    • quickly mention plots, HTTP calls, whatever
  • 3.1 Control flow
    • The Human Narrative: # comments
    • The Computer Narrative: %>% pipe operator
    • Conditions: if/else, else_if, mutate_if, when
    • Sanity Checks: stopifnot – quickly mention unit tests for packages
  • 3.2 Iteration (with mentions of parallelization)
    • Loops: for, while – mention parallelization with foreach
    • Vectorization: sapply, lapply, mapply, map_* – parallelization with mcapply
    • Need for Speed? mention benchmarking
    • Reproducible Code:
      • Reproducibility = 10% code, 90% human documentation
      • Writing pseudo-makefiles for a data analysis folder
      • Makefiles + cron (with demo scraper)
  • Practice
  • Currently: Computing the Herfindhal-Hirschman Index
  • Add: Examples of calls using Stan, Julia, Python, shell?
  • Add: Game of Life example to show iteration and matrix computations (Petr Keil)
@briatte briatte self-assigned this Jul 3, 2017
@briatte briatte modified the milestones: v2.0, v2.1 Jul 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant