R/get_moms.R

#' Returns the ID of an individual's mother
#'
#' This function returns the ID of an individual's mother
#' @param x An individual ID
#' @param df_ped A dataframe
#' @keywords kh mother
#' @export
#' @examples
#' \dontrun{
#' grap_ped(1067, df_ped)
#' }
get_moms <- function(x, df_ped){
  return(df_ped$momid[df_ped$id %in% x])
}
johow/kinlab documentation built on July 5, 2019, 4:23 p.m.