powered by
gen_tibble
genind
adegenet
This function converts a gen_tibble to a genind object from adegenet
gt_as_genind(x)
a genind object
a gen_tibble, with population coded as 'population'
if (FALSE) { # rlang::is_installed("adegenet") example_gt <- load_example_gt("gen_tbl") # Convert to genind gt_genind <- example_gt %>% gt_as_genind() # Check object class class(gt_genind) }
Run the code above in your browser using DataLab