sum                  package:matlab                  R Documentation

_M_A_T_L_A_B _s_u_m _f_u_n_c_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Provides sum of elements.

_U_s_a_g_e:

     sum(x, na.rm = FALSE)

_A_r_g_u_m_e_n_t_s:

       x: numeric or logical to be summed

   na.rm: logical scalar. If 'TRUE', remove missing values

_D_e_t_a_i_l_s:

     This is an S4 generic function.

_V_a_l_u_e:

     Return value depends on argument 'x'. If vector, returns the same
     as 'sum'. If matrix, returns vector containing the sum of each
     column.

_A_u_t_h_o_r(_s):

     P. Roebuck, roebuck@mdanderson.org

_E_x_a_m_p_l_e_s:

     sum(1:9)
     sum(matrix(1:9, 3, 3))

