To calculate the median of a numeric vector in R, you would use the ______ function.

  • median()
  • mean()
  • sd()
  • var()
To calculate the median of a numeric vector in R, you would use the median() function. The median() function returns the middle value of a sorted vector or the average of the two middle values if the vector has an even number of values.
Add your answer
Loading...

Leave a comment

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