getind: Extract a individual from a binary format bed object

Description Usage Arguments Value See Also

View source: R/rbed.R

Description

The binary bed format stores 4 individuals in a byte. This returns the SNP details for these one individual only. It is more efficient to get the chunks with getinds.

Usage

1
getind(bed, x)

Arguments

bed

An "rbed" object as returned from readbed or mergeref

x

The index of the individual to access

Value

a vector of length (bed$no.snp or length(bed$datkeep)) containing the SNP values for each individual

See Also

getinds, getsnp


danjlawson/pcapred documentation built on Oct. 7, 2021, 3:47 p.m.