count_missing_data: for each individual count the number or loci missing and...

View source: R/count_missing_data.R

count_missing_dataR Documentation

for each individual count the number or loci missing and non_missing

Description

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.

Usage

count_missing_data(D, gen_start_col)

Arguments

D

the data frame

gen_start_col

the column in which the genetic data starts

Value

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)


benmoran11/rubias documentation built on Feb. 1, 2024, 10:52 p.m.