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 classvctrs_bigSNP
(usually thegenotype
column of agen_tibble
object)- ...
currently unused.
Value
a vector of ploidy, one per individuals in the gen_tibble
Examples
example_gt <- example_gt("gen_tbl")
example_gt %>% indiv_ploidy()
#> [1] 2 2 2 2 2 2 2