simpvector                package:sca                R Documentation

_S_i_m_p_l_i_f_y _a (_P_r_i_n_c_i_p_a_l _C_o_m_p_o_n_e_n_t) _V_e_c_t_o_r _t_o _a _S_i_m_p_l_e _C_o_m_p_o_n_e_n_t

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

     Simplifies the vector 'x' to become a ``simple'' component vector
     (of the same size).

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

     simpvector(x)

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

       x: numeric vector of length 'n', say.

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

     a ``simplified'' version of 'x', i.e. an integer vector of the
     same length and each entry with the same signs.

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

     'sca', also for references

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

      x0 <- c(-2:3, 3:-1,0:3,1,1)
      cbind(x0, simpvector(x0)) # entries (-11, 0, 3)

