

   median {base}                                R Documentation

   MMeeddiiaann VVaalluuee

   DDeessccrriippttiioonn::

        Compute the sample median of the vector of values given
        as its argument.

   UUssaaggee::

        median(x, na.rm=FALSE)

   AArrgguummeennttss::

          x: a numeric vector containing the values whose
             median is to be computed.

      na.rm: a logical value indicating whether `NA' values
             should be stripped before the computation pro-
             ceeds.

   SSeeee AAllssoo::

        `quantile' for general quantiles.

   EExxaammpplleess::

        median(1:4)# = 2.5 [even number]
        median(c(1:3,100,1000))# = 3 [odd, robust]

