raw2matrix: Converts a numeric data frame to matrix

View source: R/raw2matrix.R

raw2matrixR Documentation

Converts a numeric data frame to matrix

Description

Converts a numeric data frame D with three columns (x, factor 1, factor 2) to a numeric matrix M where rows are ranks of levels of factor 1 and columns are ranks of levels of factor 2, missing values are set to NA.

Usage

raw2matrix(D)

Arguments

D

Data frame with three columns (x, factor 1, factor 2)

Value

M

Numeric matrix where rows are ranks of levels of factor 1 and columns are ranks of levels of factor 2, missing values are set to NA.

Author(s)

Joerg Schaber

Examples

	data(DWD)
	raw2matrix(DWD)

pheno documentation built on May 13, 2022, 1:05 a.m.

Related to raw2matrix in pheno...