R/FIDIID.R

FIDIID <- function(bfile) {
  #' Extract FID and IID from .fam file
  if(inherits(bfile, "pfile")) stop("Not sure what to do with pfiles yet.")

  ids <- read.fam(bfile)[,1:2]
  colnames(ids) <- c("FID", "IID")
  return(ids)

}
tshmak/Rplink documentation built on June 1, 2019, 1:55 a.m.