is_pgen_table: Determine if a '.pgen' table is valid.

View source: R/is_pgen_table.R

is_pgen_tableR Documentation

Determine if a .pgen table is valid.

Description

Determine if a .pgen table is valid.

Usage

is_pgen_table(pgen_table, verbose = FALSE)

Arguments

pgen_table

an array that maps the individuals to their SNPs, with as much rows as individuals, and as much SNPs as columns. Optionally, the row names are the individuals' IDs, where the column names are the SNP ID's

verbose

the verbosity of a function. Set to TRUE for more output. Use check_verbose to detect if this argument is valid.

Value

TRUE if the table is a valid .pgen table

Author(s)

Richèl J.C. Bilderbeek

See Also

use check_pgen_table to check if a table is a valid .pgen table (i.e. stop if it is not)

Examples

is_pgen_table(get_test_pgen_table())

is_pgen_table("nonsense")

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