A nested function in R is a function that is defined ________.

  • within another function
  • within the global environment
  • within a package
  • within a loop
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 *