filmov
tv
R Programming Tutorial - 11 - ADVANCED MATHEMATICAL FUNCTIONS IN R PROGRAMMING #RPROGRAMMING

Показать описание
ADVANCED MATHEMATICAL FUNCTIONS IN R
In R, of course, you want to use more than just basic operators. R comes with a whole set of mathematical functions. R naturally contains a whole set of functions that you’d find on a technical calculator as well. All these functions are vectorized, so you can use them on complete vectors.
Function What It Does
---------------------------------------------------------------------------
abs(x) Takes the absolute value of x
log(x,base=y) Takes the logarithm of x with base y; if base
is not specified, returns the natural logarithm
exp(x) Returns the exponential of x
sqrt(x) Returns the square root of x
factorial(x) Returns the factorial of x (x!)
choose(x,y) Returns the number of possible combinations when drawing y elements at a time from x possibilities