[ top | up ]

Data Frame to Numeric Matrix

Syntax

data.matrix(frame)

Arguments

frame a data frame whose components are either logical vectors, factors or numeric vectors.

Description

data.matrix converts a data frame into a numeric matrix.

Value

A matrix.

See Also

as.matrix, data.frame, matrix.