5.7 Appendix: Using R for Sampling Distributions