writesample             package:sampling             R Documentation

_A_l_l _p_o_s_s_i_b_l_e _s_a_m_p_l_e_s _o_f _f_i_x_e_d _s_i_z_e

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

     Give a matrix which contains in its rows the vectors (0 or 1) of
     all the samples of fixed size.

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

     writesample(n,N)

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

       n: sample size.

       N: population size.

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

     'landingcube'

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

     # matrix with the samples of size 4
     # from a population of size 10.
     w=writesample(4,10)
     # the samples are
     for(i in 1:nrow(w))
      print((1:ncol(w))[w[i,]==1])

