checkX: Check designs: size and colnames

Description Usage Arguments Details Value Note Examples

Description

Check designs: size and colnames.

Usage

1
checkX(X, XNew, ...)

Arguments

X

Design or grid object.

XNew

Matrix containing (as rows) the points where interpolation must be done, or numeric vector with length d where d is the space dimension provided by X.

...

Other arguments to be passed to methods.

Details

Check that the objects XNew and X are compatible for interpolation.

Value

A list with a matrix element XNew corresponding to the wanted matrix possibly coerced and with colnames matching those of X.

Note

The order of the two formal arguments has been changed in version 0.0-4. Former code using positional matching may lead to unexpected results.

Examples

1
2
3
4
5
X <- matrix(1:12, ncol = 3)
colnames(X) <- c("Temp", "Press", "Volume")
XNew <- matrix(1:3, ncol = 3)
XNewMod <- checkX(X = X, XNew = XNew)$XNew
XNewMod

smint documentation built on April 14, 2017, 1:49 p.m.