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)

