indiv_ploidy: Return individual ploidy
Description
Returns the ploidy for each individual.
Usage
indiv_ploidy(.x, ...)# S3 method for tbl_df
indiv_ploidy(.x, ...)
# S3 method for vctrs_bigSNP
indiv_ploidy(.x, ...)
Value
a vector of ploidy, one per individuals in the gen_tibble
Arguments
- .x
a gen_tibble, or a vector of class vctrs_bigSNP (usually the
genotype column of a gen_tibble object)
- ...
currently unused.
Examples
Run this codeexample_gt <- load_example_gt("gen_tbl")
example_gt %>% indiv_ploidy()
Run the code above in your browser using DataLab