binary                  package:wle                  R Documentation

_C_o_n_v_e_r_t _d_e_c_i_m_a_l _b_a_s_e _n_u_m_b_e_r _t_o _b_i_n_a_r_y _b_a_s_e

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

     Convert decimal base number to binary base.

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

     binary(x, dim)

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

       x: a number in decibal base.

     dim: the number of digits, if missing the right number of digits
          is evaluated.

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

  binary: a vector representing the `x` number in binary base.

dicotomy: the same as `binary` but `TRUE` and `FALSE` instead of 1 and
          0.

_N_o_t_e:

     the elements of `binary` and `dicotomy` are in reverse order.

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

     Claudio Agostinelli

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

     binary(2)
     binary(10,dim=5)

