make.marker.numeric: Translate a marker.frame.object to numeric matrix

make.marker.numericR Documentation

Translate a marker.frame.object to numeric matrix

Description

Not to be called directly by users. This utility function simply returns the coded numeric values corresponding to the allele states.

Usage

make.marker.numeric(marker.frame, level.names=NULL)

Arguments

marker.frame

A data.frame.object consisting of factors or character vectors that encode the allele states.

level.names

A vector of length 6 to translate the levels attribute or character codes into allele states that make.state.matrix understands. If necessary, dummy codes are used to fill the vector.

Value

A matrix, for which column i is match(as.character(marker.frame[,i]),level.names)

Author(s)

Charles C. Berry cberry@ucsd.edu


bqtl documentation built on Sept. 8, 2023, 5:44 p.m.