Lecture 2: Functions and control flow - Bio723-class/Bio723-lecture GitHub Wiki

Learning goals checklist for this class session

  • Learn how to define your own functions
  • Learn how to use control flow statements like if-else, for loops, etc

Slides

In class activities

  • Implement for-loop implementations of the following statistical functions (see slides and in class discussion):

    • Mean
    • Variance
    • Standard deviation
    • Covariance
    • Correlation

Assignment

Assignment Submission: Be sure to submit your assignment via Sakai, as an R Markdown file and the knit HTML document produced by your markdown file.

Readings