In baseR_exercises.Rmd exercise 8, people often struggle with the concept of internal variables. Maybe we can add a bit of clarification on this in the slides, through an example, such as:
**var1** = 10
test_age <- function(**var1**){
return(**var1** * 10)
}
test_age(5)
[1] 50
Which would show both var1's are treated different
In baseR_exercises.Rmd exercise 8, people often struggle with the concept of internal variables. Maybe we can add a bit of clarification on this in the slides, through an example, such as:
Which would show both var1's are treated different