gt_as_genind: Convert a 'gen_tibble' to a 'genind' object from 'adegenet'

View source: R/gt_as_genind.R

gt_as_genindR Documentation

Convert a gen_tibble to a genind object from adegenet

Description

This function converts a gen_tibble to a genind object from adegenet

Usage

gt_as_genind(x)

Arguments

x

a gen_tibble, with population coded as 'population'

Value

a genind object

Examples


example_gt <- load_example_gt("gen_tbl")

# Convert to genind
gt_genind <- example_gt %>% gt_as_genind()

# Check object class
class(gt_genind)


tidypopgen documentation built on Aug. 28, 2025, 1:08 a.m.