forked from k-glen/POP77001_Computer_Programming_2021
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path04_week.Rmd
More file actions
29 lines (21 loc) · 1.48 KB
/
04_week.Rmd
File metadata and controls
29 lines (21 loc) · 1.48 KB
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
# 4 Functions in R
<div id="buttons">
<a class="btn btn-primary btn-lg" role="button" href="lectures/04_week.html">Lecture Slides (html)</a>
<a class="btn btn-info btn-lg" role="button" href="https://github.com/ASDS-TCD/POP77001_Computer_Programming_2022/blob/main/lectures/04_week.pdf">Lecture Slides (pdf)</a>
<a class="btn btn-secondary btn-lg" role="button" href="https://github.com/ASDS-TCD/POP77001_Computer_Programming_2022/blob/main/lectures/04_week.ipynb">Lecture Slides (ipynb)</a>
<br>
<br>
<a class="btn btn-success btn-lg" role="button" href="https://github.com/ASDS-TCD/POP77001_Computer_Programming_2022/blob/main/tutorials/04_week.ipynb">Tutorial Exercise (ipynb)</a>
<a class="btn btn-info btn-lg" role="button" href="https://github.com/ASDS-TCD/POP77001_Computer_Programming_2022/blob/main/tutorials/04_week.pdf">Tutorial Exercise (pdf)</a>
<a class="btn btn-secondary btn-lg" role="button" href="tutorials/04_week.html">Tutorial Exercise (html)</a>
</div>
---
This week we will discuss functions, the main building block of a program implemented in
any language.
## Required Readings
- Peng Chs 15: Functions, 16: Scoping Rules;
- Wickham Ch [6: Functions](http://adv-r.had.co.nz/Functions.html);
## Additional Readings
- Wickham Chs [10: Functional Programming](http://adv-r.had.co.nz/Functional-programming.html), [11: Functionals](http://adv-r.had.co.nz/Functionals.html), [12: Function Operators](http://adv-r.had.co.nz/Function-operators.html);
## Tutorial
- Implementing functions in R