R/uniqueIds.r

Defines functions get.id get.famid uniqueIds

uniqueIds <- function(famid, id) paste(famid, id, sep = ":") 

get.famid <- function(x) {
  if(is.null(x)) 
    NULL
  else
    sapply( strsplit(x, ":"), function(x) x[1] )
}

get.id <- function(x) {
  if(is.null(x)) 
    NULL
  else
    sapply( strsplit(x, ":"), function(x) x[2] )
}
genostats/FEstim documentation built on Feb. 3, 2023, 7:33 p.m.