Skip to contents

Converts the column names of a Pedigree or Genetic value Report to something more descriptive.

Usage

headerDisplayNames(headers)

Arguments

headers

a character vector of column (header) names

Value

A character vector the same length as headers with the display name for each header. The lookup is case sensitive, and a header with no display name gives NA.

Examples

library(nprcgenekeepr)
headerDisplayNames(headers = c("id", "sire", "dam", "sex", "birth", "age"))
#> [1] "Ego ID"         "Sire ID"        "Dam ID"         "Sex"           
#> [5] "Birth Date"     "Age (in years)"