This function converts a gen_tibble
to a genind
object from adegenet
Arguments
- x
a
gen_tibble
, with population coded as 'population'
Examples
example_gt <- example_gt("gen_tbl")
# Convert to genind
gt_genind <- example_gt %>% gt_as_genind()
# Check object class
class(gt_genind)
#> [1] "genind"
#> attr(,"package")
#> [1] "adegenet"