seppop            package:adegenet            R Documentation(utf8)

_S_e_p_a_r_a_t_e _g_e_n_o_t_y_p_e_s _p_e_r _p_o_p_u_l_a_t_i_o_n

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

     The function 'seppop' splits a genind object by population,
     returning a list of objects whose components each correspond to a
     population.

     By default, components of the list are genind objects. It can also
     be a matrix of genotypes corresponding to the x$tab.

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

     ## S4 method for signature 'genind':
     seppop(x,pop=NULL,truenames=TRUE,res.type=c("genind","matrix"),
       drop=FALSE)

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

       x: a genind object

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

truenames: a logical indicating whether true names should be used
          (TRUE, default) instead of generic labels (FALSE); used if
          res.type is "matrix".

res.type: a character indicating the type of returned results, a list
          of genind object (default) or a matrix of data corresponding
          to the 'tab' slots.

    drop: a logical stating whether alleles that are no longer present
          in a subset of data should be discarded (TRUE) or kept anyway
          (FALSE, default).

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

     According to 'rse.type': a list of genind object (default) or a
     matrix of data corresponding to the 'tab' slots.

_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)

     obj <- seppop(microbov)
     names(obj)

     obj$Salers

