partition               package:Hmisc               R Documentation

_P_a_t_i_t_i_o_n_s _a_n _o_b_j_e_c_t _i_n_t_o _d_i_f_f_e_r_e_n_t _s_e_t_s

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

     Partitions an object into subsets of length defined in the 'sep'
     argument.

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

     partition.vector(x, sep, ...)
     partition.matrix(x, rowsep, colsep, ...)

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

       x: object to be partitioned. 

     sep: determines how many elements should go into each set.  The
          sum of 'sep' should be equal to the length of 'x'.

  rowsep: determins how many rows should go into each set.  The sum of
          'rowsep' must equal the number of rows in 'x'.

  colsep: determins how many columns should go into each set.  The sum
          of 'colsep' must equal the number of columns in 'x'.

     ...: arguments used in other methods of 'partition'.

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

     A list of equal length as 'sep' containing the partitioned
     objects.

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

     Charles Dupont

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

     'split'

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

     a <- 1:7
     partition.vector(a, sep=c(1,3,2,1))

