setFID: Set Family ID

Description Usage Arguments Value Author(s)

View source: R/setFID.R

Description

This function updates family IDs from a .fam file (PLINK) according to a reference table.

Usage

1
setFID(fam, ref, merge.col = 1, target.col = 3, header = F, force = F)

Arguments

fam

Path to the .fam file.

ref

Path to reference file.

merge.col

Either the name or index from the column that will be merged (with same Individual IDs from .fam file).

target.col

Either the name or index from the target column in reference that will be set as family IDs.

header

Logical. Does the reference table has a header?

force

Logical. Should family IDs be updated even if not all individuals from fam file is on reference (merge.col).

Value

Updated .fam file.

Author(s)

CainĂ£ Max Couto-Silva.


cmcouto-silva/gt documentation built on June 6, 2021, 7:14 p.m.