R: Components of Functions

Components of functions inlcudes: 

  • Function name: The name of the function.This name is used for storing in R environment as an object name.It is used to call the function from anywhere in the environment.
  • Arguments: It is the placeholder of the required input a function may require.It can have more than one arguments. This is optional.
  • Function body: A function's body contains the set of statements. It defines what function actually does.
  • Return Value: It is the value which we get after the successful execution of the set of statement given.