<- function(x) {
my_function <- x * 2
y <- x + 4
z return(y + z)
}
Lecture Ticket 7
Reading
Read the following sections of IFDAR.
- Chapter 5: sections 5.1
Questions
Consider the function:
What would
my_function(x = 10)
return?What would
my_function(x = 0)
return?What would
my_function(x = 5) + 10
return?