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,forloops, 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.
-
Assignment 02, due 29 January 2019 by beginning of class.
-- You can download a template R Markdown document for assignment at: homework-template.Rmd
Readings
- Read Chapters 6, 7 in the Bio 723 Workbook
- Read Chapters 5, 10-12 in R for Data Science