This is wrapper for read_table that reads a basic PLINK fam file. For plink hard-called data, it may be useful to use the fam file ids as a filter for your phenotype and covariate data.
ukb_gen_read_fam(
file,
col.names = c("FID", "IID", "paternalID", "maternalID", "sex", "phenotype"),
na.strings = "-9"
)
A path to a fam file.
A character vector of column names. Default: c("FID", "IID", "paternalID", "maternalID", "sex", "phenotype")
Character vector of strings to use for missing values. Default "-9". Set this option to character() to indicate no missing values.
ukb_gen_read_sample
to read a sample file