R/update.sf.R

Defines functions update.sf

update.sf <- function(sf, exc.snps){
  
  if(length(exc.snps) == 0){
    return(sf)
  }
  
  id <- which(!(sf$SNP %in% exc.snps))
  if(length(id) == 0){
    msg <- "All SNPs excluded in update.sf"
    stop(msg)
  }
  
  sf <- sf[!(sf$SNP %in% exc.snps), ]
  sf
  
}
zhangh12/ARTP3 documentation built on Aug. 16, 2019, 7:39 p.m.