Learn R Programming

pheno (version 1.7-0)

raw2matrix: 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.

Examples

Run this code
# NOT RUN {
	data(DWD)
	raw2matrix(DWD)
# }

Run the code above in your browser using DataLab