indiv_ploidy: Return individual ploidy

View source: R/indiv_ploidy.R

indiv_ploidyR Documentation

Return individual ploidy

Description

Returns the ploidy for each individual.

Usage

indiv_ploidy(.x, ...)

## S3 method for class 'tbl_df'
indiv_ploidy(.x, ...)

## S3 method for class 'vctrs_bigSNP'
indiv_ploidy(.x, ...)

Arguments

.x

a gen_tibble, or a vector of class vctrs_bigSNP (usually the genotype column of a gen_tibble object)

...

currently unused.

Value

a vector of ploidy, one per individuals in the gen_tibble

Examples

example_gt <- load_example_gt("gen_tbl")

example_gt %>% indiv_ploidy()


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