Skip to contents

This function converts a gen_tibble to a genlight object from adegenet

Usage

gt_as_genlight(x)

Arguments

x

a gen_tibble, with population coded as 'population'

Value

a genlight object

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"