R/n_sibs.R

Defines functions n_sibs

Documented in n_sibs

#' @title Find number of siblings in largest family
#'
#' @param pheno tibble loaded with load_pheno().
#'
#' @return Number of siblings in the largest family.
n_sibs <- function(pheno) {
  return(length(grep("sib", colnames(pheno))) / 3)
}
FireGutter/geneference documentation built on Dec. 17, 2021, 8:27 p.m.