Lecture 10: Vectors
Schedule for today
Solutions to previous homework:
| Exercise | Solution |
|---|---|
| Replacing values based on divisibility | divisible.R |
| Number-coded message | number-coded.R |
We discussed the principles of vectorization: the examples written during class are here: vectorization.R
Exercise during class:
- Are functions vectorized? - Paste code into the console with vector arguments to see the solutions!