get_parents: Get Direct Parents

View source: R/pedigree.R

get_parentsR Documentation

Get Direct Parents

Description

Utility function to split a given pedigree string and retrieve the pedigrees of the direct parents (female and male). The function handles different formats of cross representations, such as single slashes (/), double slashes (//), or numbered crosses (e.g., /3/). It extracts the highest cross order when available and returns the sub-pedigree for the immediate parents.

Usage

get_parents(pedigree)

Arguments

pedigree

A string providing the parentage through which a cultivar was obtained.

Value

A vector of two items representing the direct female and male parents. If parent information is unavailable or unknown, 'NA' is returned for the respective parent.

Author(s)

Khaled Al-Shamaa, k.el-shamaa@cgiar.org


icarda-git/QBMS documentation built on Sept. 25, 2024, 10:45 p.m.