readIID {plinkFile}R Documentation

read individual ID

Description

Generate individual ID automatically, or based on a fam file.

Usage

readIID(fam, opt = NULL)

Arguments

fam

prefix or name of a PLINK file, or data fram from a FAM file.

opt

option (def=1: the 2nd column in FAM file).

Details

The option (opt) can be:

Value

a vector of individual ID

Examples

pfx <- file.path(system.file("extdata", package="plinkFile"), "m20")
readIID(pfx,  1) # opt= 1: IID
readIID(pfx,  2) # opt= 2: FID.IID
readIID(pfx, -1) # opt=-1: number sequence
readIID(pfx, -2) # opt=-2: number sequence, fixed length, decimal
readIID(pfx, -3) # opt=-3: number sequence, fixed length, hexidemical


[Package plinkFile version 0.2.1 Index]