- R: the mean function is already created
- C: You will create the mean function
It's the difference between using a calculator and knowing how to multiply two 5 digit numbers with pen and paper.
You might say, "Oh but we can do that in R". Well, if you start doing that one function at a time, very soon you find yourself with R grinding to a halt.
Re:Introduction to Statistical Learning
by disgruntledphd2 on Wednesday August 05, 2020 @04:25AM
(#24058462)
Go look at the R source for mean sometime (you want the base function). It's not as simple as one might imagine.
Re:Introduction to Statistical Learning
by cinntaile on Tuesday August 04, 2020 @05:48PM
(#24054846)
If you want to you can recreate the mean function in R as well, so why would you choose to do it in another language if your goal is to learn R?
For example, I would assume that creating a mean function using numbers and operators would be language-agnostic.