Kfold              package:MLInterfaces              R Documentation

_f_o_r _g_i_v_e_n _n, _g_e_n_e_r_a_t_e _a _K-_f_o_l_d _p_a_r_t_i_t_i_o_n _o_f _1:_n

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

     for given n, generate a K-fold partition of 1:n

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

     Kfold(n, K=5)

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

       n: number of elements to be partitioned 

       K: number of partitions

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

     a vector of length n with elements 1:K, as balanced as possible,
     sorted increasing

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

     Vince Carey <stvjc@channing.harvard.edu>

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

     Kfold(23)

