get.x.columns <-
function (data.d)
{
x.columns <- colnames(xmat(data.d, allow = T))
test.x.columns <- attr(data.d, "x.columns")
if (!is.null(test.x.columns) && !all(x.columns %in% test.x.columns)) {
warning("colnames(xmat(data.d)) != attr(data.d, \"x.columns\")")
}
return(x.columns)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.