To return a value from a function in R, you use the ______ keyword.

  • return
  • yield
  • output
  • result
To return a value from a function in R, you use the return keyword. The return keyword is followed by the value or expression that you want to return from the function. It allows you to pass the result of the function back to the calling code.
Add your answer
Loading...

Leave a comment

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