forked from cis-ds/course-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cm006.Rmd
36 lines (25 loc) · 975 Bytes
/
cm006.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: "Vectors and iteration"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(cache=TRUE)
```
# cm006 - October 12, 2016
## Overview
* Review the `fizzbuzz` function
* Review the major types of vectors
* Demonstrate how to subset vectors
* Demonstrate vector recycling
* Define *lists*
* Demonstrate how to write an iterative operation using a `for` loop
* Practice writing a `for` loop
* Demonstrate how to write an iterative operation using a `map` function
* Practice writing a `map` function
## Slides and links
* [Slides](extras/cm006_slides.html)
* [How to rewrite a `for` loop: example from class](extras/cm006_rewrite_for_loop_tutorial.html)
## To do for Wednesday
* [Start homework 3](hw03-programming.html)
* Chapters 22-25 in [R for Data Science](http://r4ds.had.co.nz)
* [Submit your final project proposal](https://docs.google.com/forms/d/e/1FAIpQLSddYTxsCLZyunFIZGG33Pt1hW8M5CwPa8uMMIxJsHU-CuR91w/viewform) by Friday