check_phe_table: Check if a phenotype table is valid.

View source: R/check_phe_table.R

check_phe_tableR Documentation

Check if a phenotype table is valid.

Description

Check if a phenotype table is valid. Will stop if not

Usage

check_phe_table(phe_table)

Arguments

phe_table

a table of phenotypes.

A phe_table is a tibble with these columns:

  • FID The family ID

  • IID Within-family ID (cannot be zero)

  • One or more columns of phenotype values, columns can have any name

These names match the PLINK column names (https://www.cog-genomics.org/plink/1.9/input#pheno). Use read_plink_phe_file to read a phenotype file. Use check_phe_table to test if a phenotype table is valid.

Value

Nothing. Will stop if the phe_table is invalid

Author(s)

Richèl J.C. Bilderbeek

See Also

use check_phe_table_ok_for_qt to check if the phe_table is valid for a quantitative trait analysis.

Examples

check_phe_table(get_test_phe_table())

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