bitShiftL               package:bitops               R Documentation

_B_i_t_w_i_s_e _S_h_i_f_t _O_p_e_r_a_t_o_r (_t_o _t_h_e _L_e_f_t _o_r _R_i_g_h_t)

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

     .......

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

     bitShiftL(a, b)
     bitShiftR(a, b)

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

       a: numeric vector 

       b: integer vector 

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

     numeric vector of the maximum length as 'a' or 'b' containing the
     value of 'a' shifted to the left or right by 'b' bits. NA is
     returned wherever the value of 'a' or 'b' is not finite, or,
     wherever the magnitude of 'a' is greater than or equal to 2**32.

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

       bitShiftR(-1,1) == 2147483647
       bitShiftL(2147483647,1) == 4294967294
       bitShiftL(-1,1) == 4294967294

