permute                package:gtools                R Documentation

_R_a_n_d_o_m_l_y _P_e_r_m_u_t_e _t_h_e _E_l_e_m_e_n_t_s _o_f _a _V_e_c_t_o_r

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

     Randomly Permute the elements of a vector

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

     permute(x)

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

       x: Vector of items to be permuted 

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

     This is simply a wrapper function for 'sample'.

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

     Vector with the original items reordered.

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

     Gregory R. Warnes gregory.r.warnes@pfizer.com

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

     'sample'

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

       x <- 1:10
       permute(x)

