View source: R/count_missing_data.R
count_missing_data | R Documentation |
Takes a rubias genetic data frame that must have column "indiv". Haploids have the second column at each locus totally missing. Diploids with missing data will have both gene copies missing.
count_missing_data(D, gen_start_col)
D |
the data frame |
gen_start_col |
the column in which the genetic data starts |
returns a data frame with indiv (as characters), n_non_miss_loci, n_miss_loci (as numeric) and missing_loci (as a list-column of named integer vectors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.