This is a wrapper for read_table
that reads an Oxford format .sample file. If you use the unedited sample file as supplied with your genetic data, you should only need to specify the first argument, file.
ukb_gen_read_sample(
file,
col.names = c("id_1", "id_2", "missing"),
row.skip = 2
)
A path to a sample file.
A character vector of column names. Default: c("id_1", "id_2", "missing")
Number of lines to skip before reading data.
ukb_gen_read_fam
to read a fam file