
Convert a gen_tibble
to a genlight
object from adegenet
Source: R/gt_as_genlight.R
gt_as_genlight.Rd
This function converts a gen_tibble
to a genlight
object from adegenet
Arguments
- x
a
gen_tibble
, with population coded as 'population'
Examples
example_gt <- example_gt("gen_tbl")
# Convert to genind
gt_genlight <- example_gt %>% gt_as_genlight()
# Check object class
class(gt_genlight)
#> [1] "genlight"
#> attr(,"package")
#> [1] "adegenet"