my_function <- function(x) {
y <- x * 2
z <- x + 4
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) + 10return?