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)

