Estimate missingness for each individual (i.e. the frequency of missing genotypes in an individual).

indiv_missingness(.x, as_counts = FALSE, ...)

# S3 method for class 'tbl_df'
indiv_missingness(.x, as_counts = FALSE, ...)

# S3 method for class 'vctrs_bigSNP'
indiv_missingness(.x, as_counts = FALSE, ...)

# S3 method for class 'grouped_df'
indiv_missingness(.x, as_counts = FALSE, ...)

Arguments

.x

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

as_counts

boolean defining whether the count of NAs (rather than the rate) should be returned. It defaults to FALSE (i.e. rates are returned by default).

...

currently unused.

Value

a vector of heterozygosities, one per individuals in the gen_tibble