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 character string. The objective is to introduce the data type conversion during output extraction from a function. Let’s say, you are given the following input vector:
V1 <- c(3, 7, 2, 6, 9)