What is a nested function in R?

  • A function that is defined within another function
  • A function that calls another function
  • A function that takes another function as an argument
  • A function that returns another function
A nested function in R is a function that is defined within another function. It is created and exists within the scope of the outer function. The nested function can access variables from the outer function and can only be called from within the outer function.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *