rotateVector            package:ifultools            R Documentation

_C_i_r_c_u_l_a_r_l_y _v_e_c_t_o_r _r_o_t_a_t_i_o_n

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

     Circularly rotates elememnts in a vector.

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

     rotateVector(x, shift=1)

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

       x: a vector.

   shift: an integer denoting the shift (number of elements to
          circularly rotate). A negative value implies a negative
          (leftward) shift of the data.

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

     a numeric vector containing the result.

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

     'isVectorAtomic'.

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

     rotateVector(1:5, 2)
     rotateVector(1:5, -2)

