Math - R (Built-in Math Functions) Flashcards
1
Q
51) For example, the min() and max() functions can be used to find the lowest or highest number in a set.
A
BMF min() max()
2
Q
52) The sqrt() function returns the square root of a number.
A
BMF sqrt()
3
Q
53) The abs() function returns the absolute (positive) value of a number.
A
BMF abs()
4
Q
54) The ceiling() function rounds a number upwards to its nearest integer.
A
BMF ceiling()
5
Q
55) The floor() function rounds a number downwards to its nearest integer.
A
BMF floor()