-
Notifications
You must be signed in to change notification settings - Fork 49
/
04_week.Rmd
28 lines (20 loc) · 1.54 KB
/
04_week.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
# 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 Chs [6: Functions](https://adv-r.hadley.nz/functions.html), [7: Environments](https://adv-r.hadley.nz/environments.html);
## Additional Readings
-Wickham Chs [9: Functionals](https://adv-r.hadley.nz/functionals.html), [10: Function Factories](https://adv-r.hadley.nz/function-factories.html), [11: Function Operators](https://adv-r.hadley.nz/function-operators.html).
## Tutorial
- Creating functions in R.