Based on the requirement of the user, sometimes you may need to produce an output of different data types. You might need to perform a numeric calculation inside the function, but an output needs to display as a text or sometimes, the input is numeric but the output is a customized graph. There are several types of output that can be produced by creating customized function; also, the values of the output can be controlled. In this recipe, you will write a new function that can produce diffeent types of output.
Producing different output types and return values
Getting ready
In this recipe, you will write a very small customized function that will calculate the mean and standard error of the mean and provide an output as a...