R/getRequiredCols.R

Defines functions getRequiredCols

Documented in getRequiredCols

#' Get required column names for a studbook.
#'
## Copyright(c) 2017-2024 R. Mark Sharp
## This file is part of nprcgenekeepr
#' Pedigree curation function
#' @return A character vector of the required columns that can be in a studbook.
#' The required columns are as follows:
#' \itemize{
#' \item\{id\} \{-- character vector with unique identifier for an individual\}
#' \item\{sire\} \{-- character vector with unique identifier for an
#' individual's father (\code{NA} if unknown).\}
#' \item\{dam\} \{-- character vector with unique identifier for an
#' individual's mother (\code{NA} if unknown).\}
#' \item\{sex\} \{-- factor \{levels: "M", "F", "U"\} Sex specifier for an
#' individual\}
#' \item\{birth\} \{-- Date or \code{NA} (optional) with the individual's birth
#' date\}
#' }
#' @export
#' @examples
#' library(nprcgenekeepr)
#' getRequiredCols()
getRequiredCols <- function() {
  c("id", "sire", "dam", "sex", "birth")
}
rmsharp/nprcmanager documentation built on Feb. 2, 2025, 12:45 a.m.