5. Functions. The base R
distribution comes with many functions, such as mean()
and sd()
, which compute the
mean and standard deviation of a collection of numbers.
You are given a vector of stock returns named returns
. Use the aforementioned functions to compute its mean and standard deviation.