Learn R Programming

tidypopgen (version 0.4.3)

gt_as_genlight: Convert a gen_tibble to a genlight object from adegenet

Description

This function converts a gen_tibble to a genlight object from adegenet

Usage

gt_as_genlight(x)

Value

a genlight 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 genlight
gt_genlight <- example_gt %>% gt_as_genlight()

# Check object class
class(gt_genlight)
}

Run the code above in your browser using DataLab