sum                   package:base                   R Documentation

_S_u_m _o_f _V_e_c_t_o_r _E_l_e_m_e_n_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     `sum' returns the sum of all the values present in its arguments.
     If `na.rm' is `FALSE' an `NA' value in any of the arguments will
     cause a value of `NA' to be returned, otherwise `NA' values are
     ignored.

_U_s_a_g_e:

     sum(..., na.rm=FALSE)

_A_r_g_u_m_e_n_t_s:

     ...: numeric or complex vectors.

   na.rm: logical. Should missing values be removed?

_V_a_l_u_e:

     The sum. If all of `...' are of type integer, then so is the sum,
     and in that case the result will be `NA' (with a warning) if
     integer overflow occurs.

