check_cov_table: Check if a covariate table is valid.

View source: R/check_cov_table.R

check_cov_tableR Documentation

Check if a covariate table is valid.

Description

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

Usage

check_cov_table(cov_table)

Arguments

cov_table

a table of covariates.

A cov_table is a tibble with these columns:

  • FID The family ID

  • IID Within-family ID (cannot be zero)

  • One or more columns of covariate 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_cov_file to read a covariates file. Use check_cov_table to test if a covariates table is valid.

Value

Nothing. Will stop if the cov_table is invalid

Author(s)

Richèl J.C. Bilderbeek


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