f.check.unique.ids: Checking uniqueness of individuals' IDs

View source: R/f.check.unique.ids.R

f.check.unique.idsR Documentation

Checking uniqueness of individuals' IDs

Description

This checks whether the individuals have unique IDs. If not, it creates new IDs by adding the family ID to the indiv. ID. Since the function checks for specific column names, this basically means that the input should be as read from a PED file.

Usage

f.check.unique.ids(data.cov)

Arguments

data.cov

A matrix with "id.fam", "id.c", "id.m", and "id.f" columns.

Value

List with:

  • ids - new IDs in the same order as "id.c" column in the input data

  • pedIndex - matrix with "family", "id.child", "id.mother", and "id.father" columns


Haplin documentation built on Sept. 11, 2024, 7:13 p.m.