make.marker.numeric function

Translate a marker.frame.object to numeric matrix

Translate a marker.frame.object to numeric matrix

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

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.

Returns

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

Author(s)

Charles C. Berry cberry@ucsd.edu

  • Maintainer: Charles C. Berry
  • License: GPL (>= 2)
  • Last published: 2024-09-24

Useful links