How to estimate a population mean from a sample and build a confidence interval in R, step by step and with the built-in t.test function.