Learn R Programming

gofMC (version 1.1.2)

fitmetric_check: Convert fitmetric arguments to matrices.

Description

Checks classes of fitmetric arguments and converts them to matrices if they are not already.

Usage

fitmetric_check(x, y)

Arguments

x
a vector of class numeric or integer or a numeric matrix
y
a vector of class numeric or integer or a numeric matrix

Value

a list containing x, y, N(number of rows), and dof(number of columns)

Examples

Run this code
vlist <- fitmetric_check(runif(100000),runif(100000))
mlist <- fitmetric_check(matrix(rnorm(10000),ncol=10),matrix(rnorm(10000),ncol=10))

Run the code above in your browser using DataLab