home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / mean < prev    next >
Encoding:
Text File  |  1997-04-23  |  960 b   |  37 lines

  1.     
  2.     _A_r_i_t_h_m_e_t_i_c _M_e_a_n
  3.     
  4.          mean(x, trim=0, na.rm=FALSE)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.                x : a numeric vector containing the values whose
  9.                    mean is to be computed.
  10.     
  11.             trim : the fraction (0 to 0.5) of observations to be
  12.                    trimmed from each end of x before the mean is
  13.                    computed.
  14.     
  15.            na.rm : a logical value indicating whether NA values
  16.                    should be stripped before the computation
  17.                    proceeds.
  18.     
  19.     _D_e_s_c_r_i_p_t_i_o_n:
  20.     
  21.          If trim is zero (the default), the arithmetic mean of
  22.          the values in x is computed.  If trim is non-zero, a
  23.          symmetrically trimmed mean is computed with a fraction
  24.          of trim observations deleted from each end before the
  25.          mean is computed.
  26.     
  27.          Missing values are ignored.
  28.     
  29.     _S_e_e _A_l_s_o:
  30.     
  31.          weighted.mean
  32.     
  33.     _E_x_a_m_p_l_e_s:
  34.     
  35.          xm <- mean(x)
  36.     
  37.