fortify.cv.glmnet: Convert 'glmnet::cv.glmnet' to 'data.frame'

View source: R/fortify_glmnet.R

fortify.cv.glmnetR Documentation

Convert glmnet::cv.glmnet to data.frame

Description

Convert glmnet::cv.glmnet to data.frame

Usage

## S3 method for class 'cv.glmnet'
fortify(model, data = NULL, ...)

Arguments

model

glmnet::cv.glmnet instance

data

original dataset, if needed

...

other arguments passed to methods

Value

data.frame

Examples

if (requireNamespace("survival", quietly = TRUE)) {
  fortify(glmnet::cv.glmnet(data.matrix(Orange[-3]), data.matrix(Orange[3])))
}

ggfortify documentation built on May 29, 2024, 7:19 a.m.