Learn R Programming

tidypopgen (version 0.4.3)

gt_as_genind: 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)

Value

a genind object

Arguments

x

a gen_tibble, with population coded as 'population'

Examples

Run this code
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