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

fortify.cv.glmnet {ggfortify} | R 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

    fortify(glmnet::cv.glmnet(data.matrix(Orange[-3]), data.matrix(Orange[3])))

[Package ggfortify version 0.4.3 Index]