forked from cis-ds/course-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcm006.Rmd
More file actions
37 lines (26 loc) · 1005 Bytes
/
cm006.Rmd
File metadata and controls
37 lines (26 loc) · 1005 Bytes
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
35
---
title: "Vectors and iteration"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(cache=TRUE)
```
# cm006 - January 25, 2017
## Overview
* 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)
* [Data storage types](block010_vectors.html)
* [Iteration](block011_iteration.html)
* Chapters 14.1-2, 20-21 from [R for Data Science](http://r4ds.had.co.nz/)
## To do for Monday
* [Start homework 4](hw04-programming.html)
* Read [Debugging, condition handling, and defensive programming in *Advanced R* by Hadley Wickham](http://adv-r.had.co.nz/Exceptions-Debugging.html)
* Review chapter 21.6 in [R for Data Science](http://r4ds.had.co.nz)