check_trait: Check if a trait is valid.

View source: R/check_trait.R

check_traitR Documentation

Check if a trait is valid.

Description

Check if a trait (with a clear genetic architecture and a known minor allele frequency) is valid. Will stop if not

Usage

check_trait(trait)

Arguments

trait

one trait with a clear genetic architecture and a known minor allele frequency, as created by create_trait. Use is_one_trait to detect if something is one trait

Value

the checked trait, now of class type trait

Author(s)

Richèl J.C. Bilderbeek

Examples

check_trait(create_additive_trait())
check_trait(create_random_trait())

richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.