raw2matrix {pheno}R 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)

[Package pheno version 1.4 Index]