gsi.isSingleRow         package:compositions         R Documentation

_I_n_t_e_r_n_a_l _f_u_n_c_t_i_o_n: _C_a_n _s_o_m_e_t_h_i_n_g _b_e _c_o_n_s_i_d_e_r_e_d _a_s _a _s_i_n_g_l_e
_m_u_l_t_i_v_a_r_i_a_t_e _d_a_t_a _i_t_e_m?

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

     Checks wether something can be regarded as a single multivariate
     item, being a matrix or a vector, which is only a row or a column.

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

     gsi.isSingleRow(X)

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

       X: the matrix or vector to be checked

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

     It is defined as ' gsi.isSingleRow <- function(X) { return(
     NROW(X) == 1 || NCOL(X) ==1 ) } '

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

     a logical value

_N_o_t_e:

     Do not use gsi.* functions directly since they are internal
     functions of the package

_S_e_e _A_l_s_o:

     'gsi'

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

     gsi.isSingleRow(1:10)

