nchoosek                 package:vsn                 R Documentation

_L_i_s_t _a_l_l _s_u_b_s_e_t_s _o_f _s_i_z_e _k _f_r_o_m _n _o_b_j_e_c_t_s

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

     List all subsets of size k from n objects

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

     nchoosek(n, k)

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

       n: Integer

       k: Integer

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

     A matrix with k rows and as many columns as there are distinct
     subsets. Each column contains integers between 1 and n, and
     represents a subset.

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

     'choose'

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

     nchoosek(5,3)

