check_refmix: A helper function to check that the input data frame is OK

View source: R/eca-internal-funcs.R

check_refmixR Documentation

A helper function to check that the input data frame is OK

Description

Just checks to make sure that column types are correct.

Usage

check_refmix(D, gen_start_col, type = "reference")

Arguments

D

the data frame

gen_start_col

the column in which the genetic data starts

type

For writing errors, supply "mixture" or "reference" as appropriate.

Details

It also checks the patterns of missing data, and from that infers whether markers are haploid or diploid.


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