Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the above example, there are two three functions: the main function is called "newsstats". Within this function, there is a subfunction are two subfunctions; one called "mean" and the other, "median". The subfunction is defined the exact same way as the main function; but the difference is the subfunction can only used when the main function is used - you can not call your subfunctions in the command window.

...