Suppose you're given a numeric vector in R and asked to find the maximum and minimum value. How would you do it?

  • Use the max() function to find the maximum value and the min() function to find the minimum value
  • Use the sum() function to find the maximum value and the mean() function to find the minimum value
  • Use the max_value() function to find the maximum value and the min_value() function to find the minimum value
  • Use the maximum() function to find the maximum value and the minimum() function to find the minimum value
To find the maximum and minimum value in a numeric vector in R, you would use the max() function to find the maximum value and the min() function to find the minimum value. These functions return the largest and smallest values in the vector, respectively.
Add your answer
Loading...

Leave a comment

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