genpop objects are created from genind objects using genind2genpop:
here is a sample conversion for genind to genpop using the nancycats data provided in adegenet package
data(nancycats)
catpop <- genind2genpop(nancycats)
#
Converting data from a genind to a genpop object...
#
...done.
catpop
/// GENPOP OBJECT /////////
#
// 17 populations; 9 loci; 108 alleles; size: 28.5 Kb
#
// Basic content
@tab: 17 x 108 matrix of allele counts
@loc.n.all: number of alleles per locus (range: 8-18)
@loc.fac: locus factor for the 108 columns of @tab
@all.names: list of allele names for each locus
@ploidy: ploidy of each individual (range: 2-2)
@type: codom
@call: genind2genpop(x = nancycats)
#
// Optional content
@other: a list containing: xy
catpop$tab[1:5,1:10]