![]() |
VOOZH | about |
median() function in R Language is used to calculate the median of the elements of the numeric vector passed as argument.
Syntax: median(x, na.rm) Parameters: x: Numeric Vector na.rm: Boolean value to ignore NAExample 1: Output:
[1] 5 [1] -3Example 2: Output:
[1] NA [1] 4