getTrain                package:FKBL                R Documentation

_G_e_t_s _t_h_e _t_r_a_i_n _d_a_t_a _f_r_o_m _a _p_r_o_b_l_e_m

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

     This function belongs to a pair, whose other function is getTest. 
     It divides the problem in the number  of chunks given. It returns
     all the data except the i-th chunk, as the i-th  chunk will be the
     test data.

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

      getTrain(data,chunks,i)

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

     Takes the data, the number of chunks and the test chunk.

    data: The data of the problem.

  chunks: The number of chunks to divide the data.

       i: The chunk reserved to be the test data.

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

     A dataset with the train data.

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

      data(trainA)
      getTrain(trainA,10,1)

