R/read-table-plink.R

Defines functions read.table.plink

read.table.plink <- function(filestub, ext, ...) {
  result <- NULL

  readfile <- paste0(filestub, ext)
  if(file.exists(readfile)) {
    result <- read.table2(readfile, ...)
    attr(result, "table.exists") <- T
  }
  else attributes(result) <- list(table.exists= F)

  return(result)

}
mattwarkentin/genetools documentation built on Nov. 4, 2019, 6:19 p.m.