Question: what are the different parts of a function in r?
Answer: the body() , the code inside the function.
the formals() , the list of arguments which controls how you can call the function.
the environment() , the “map” of the location of the function's variables.