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!?
Hi
extract.broom()usesout <- broom::glance(model)[1, ]. Using[1, ]implicitly assumes that the result ofbroom::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!?