Learn R Programming

smint (version 0.4.2)

checkX: Check designs: size and colnames

Description

Check designs: size and colnames.

Usage

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.

Value

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

Details

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

Examples

Run this code
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

Run the code above in your browser using DataLab