View source: R/fortify_glmnet.R
fortify.cv.glmnet | R Documentation |
glmnet::cv.glmnet
to data.frame
Convert glmnet::cv.glmnet
to data.frame
## S3 method for class 'cv.glmnet'
fortify(model, data = NULL, ...)
model |
|
data |
original dataset, if needed |
... |
other arguments passed to methods |
data.frame
if (requireNamespace("survival", quietly = TRUE)) {
fortify(glmnet::cv.glmnet(data.matrix(Orange[-3]), data.matrix(Orange[3])))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.