Which of the following functions returns the maximum value in a vector?

Which of the following functions returns the maximum value in a vector?

a) min()
b) max()
c) range()
d) summary()

Answer:

b) max()

Explanation:

The max() function returns the largest value from a given vector.

Reference:

R Programming – Functions MCQ Questions and Answers

Scroll to Top