selPopSize          package:adegenet          R Documentation(utf8)

_S_e_l_e_c_t _g_e_n_o_t_y_p_e_s _o_f _w_e_l_l-_r_e_p_r_e_s_e_n_t_e_d _p_o_p_u_l_a_t_i_o_n_s

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

     The function 'selPopSize' checks the sample size of each
     population in a genind object and keeps only genotypes of
     populations having a given minimum size.

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

     ## S4 method for signature 'genind':
     selPopSize(x,pop=NULL,nMin=10)

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

       x: a genind object

     pop: a vector of characters or a factor giving the population of
          each genotype in 'x'. If not provided, seeked from x$pop.

    nMin: the minimum sample size for a population to be retained.
          Samples sizes strictly less than 'nMin' will be discarded,
          those equal to or greater than 'nMin' are kept.

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

     A  genind object.

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

     Thibaut Jombart t.jombart@imperial.ac.uk

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

     'seploc', 'repool'

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

     data(microbov)

     table(pop(microbov))
     obj <- selPopSize(microbov, n=50)

     obj
     table(pop(obj))

