R/read_plink_fam_file.R

Defines functions read_plink_fam_file

Documented in read_plink_fam_file

#' Read a \code{PLINK}/\code{PLINK2} \code{.fam} file
#' @inheritParams default_params_doc
#' @author Richèl J.C. Bilderbeek
#' @export
read_plink_fam_file <- function(
  fam_filename,
  verbose = FALSE
) {
  testthat::expect_true(file.exists(fam_filename))
  suppressWarnings(
    fam_table <- genio::read_fam(fam_filename, verbose = verbose)
  )
  fam_table
}
richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.