# List to sparse matrix conversion

### Description

create a matrix with all estimated coefficients from the output of `HDlars`

or `EMlasso`

functions.

### Usage

1 | ```
listToMatrix(x, row = c("covariates", "lambda"))
``` |

### Arguments

`x` |
a |

`row` |
if covariates, covariates are in row |

### Value

A sparse matrix containing the values of estimated coefficients for all penalty parameter and all covariates

### See Also

`HDlars`

`EMlasso`

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.