Learn R Programming

ggpedigree (version 0.8.0)

.restoreNames: Restore Names in Connections Data Frame

Description

This function restores the names of the columns in the connections data frame to the user-specified names.

Usage

.restoreNames(
  connections,
  personID = "personID",
  momID = "momID",
  dadID = "dadID",
  spouseID = "spouseID",
  twinID = "twinID",
  famID = "famID"
)

Arguments

connections

A data frame containing the connections data.

personID

Character string specifying the column name for individual IDs. Defaults to "personID".

momID

Character string specifying the column name for mother IDs. Defaults to "momID".

dadID

Character string specifying the column name for father IDs. Defaults to "dadID".

spouseID

Character string specifying the column name for spouse IDs. Defaults to "spouseID".

twinID

Character string specifying the column name for twin IDs. Defaults to "twinID".

famID

Character string specifying the column name for family IDs. Defaults to "famID".