Report question

Question: Writing functions in R, keeping scoping in mind