I would like to extract the glmnet generated model coefficients and create a SQL query from them. The function coef(cv.glmnet.fit) yields a \'dgCMa
coef(cv.glmnet.fit)
dgCMa
Check broom package. It has tidy function that converts output of different R objects (including glmnet) into data.frames.
tidy
glmnet