checkX | R Documentation |
Check designs: size and colnames.
checkX(X, XNew, ...)
X |
Design or grid object. |
XNew |
Matrix containing (as rows) the points where
interpolation must be done, or numeric vector with length |
... |
Other arguments to be passed to methods. |
Check that the objects XNew
and X
are compatible
for interpolation.
A list with a matrix element XNew
corresponding to
the wanted matrix possibly coerced and with colnames matching
those of X
.
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.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.