Learn R Programming

LTFGRS (version 1.0.0)

fixSexCoding: Fixing sex coding in trio info

Description

Internal function used to assist in fixing sex coding separately from id coding type.

Usage

fixSexCoding(x, sex_coding = TRUE, dadid, momid)

Value

appropriate sex coding

Arguments

x

current row to check against

sex_coding

logical. Is sex coded as character?

dadid

column name of father ids

momid

column name of mother ids