get_n_samples_from_fam_table: Get the number of samples from a '.fam' table

View source: R/get_n_samples.R

get_n_samples_from_fam_tableR Documentation

Get the number of samples from a .fam table

Description

Get the number of samples from a .fam table

Usage

get_n_samples_from_fam_table(fam_table)

Arguments

fam_table

a tibble of the genetic mapping, with as many rows as SNPs.

Each row contains:

  • fam: the family ID

  • id: the individual's ID

  • pat: ID of father

  • mat: ID of mother

  • sex: the gender

  • pheno: a phenotype

Use get_test_fam_table to get a .fam table as used in testing. Use read_plink_fam_file to read a PLINK .fam file. Use check_fam_table to test if a .fam table is valid.

Value

the number of samples


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