Chapter 8. Doing Math and Simulations in R
R contains built-in functions for your favorite math operations and, of course, for statistical distributions. This chapter provides an overview of using these functions. Given the mathematical nature of this chapter, the examples assume a slightly higher-level knowledge than those in other chapters. You should be familiar with calculus and linear algebra to get the most out of these examples.
Math Functions
R includes an extensive set of built-in math functions. Here is a partial list:
exp()
: Exponential function, basee
log()
: Natural logarithmlog10()
: Logarithm base 10sqrt()
: Square rootabs()
: Absolute ...
Get The Art of R Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.