Learn R Programming

Haplin (version 7.3.2)

f.check.unique.ids: 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)

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

Arguments

data.cov

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