Skip to content

extract.broom assumes glance() will return a df with more than 1 column #215

@MatthieuStigler

Description

@MatthieuStigler

Hi

extract.broom() uses out <- broom::glance(model)[1, ]. Using [1, ] implicitly assumes that the result of broom::glance(model) has at least two columns (if only one, will not be a df anymore).

Could you use instead out <- broom::glance(model)[1, , drop=FALSE] ?

Thanks!

PS: happy to send a pull request if easier for you!?

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions