Last data update: 2014.03.03

R: Converts a numeric data frame to matrix
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)

Results