The ______ function in R can be used to find the index of the maximum value in a vector.

  • which.max()
  • which.min()
  • index.max()
  • index.min()
The which.max() function in R can be used to find the index of the maximum value in a vector. The which.max() function returns the index of the first occurrence of the maximum value.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *