Learn R Programming

ProcMod (version 1.0.8)

.procmod_coerce_value: Internal function coercing the data to a matrix.

Description

Transforme the x value into a numeric matrix of the correct size or into a dist object.

Usage

.procmod_coerce_value(x, nrows = 0, contrasts = NULL)

Arguments

x

The data to coerce

nrows

an interger value specifying the number of row of the returned matrix

contrasts

see the contrasts_arg argument of the procmod_frame constructor.

Value

a new numeric matrix with correct size.