Skip to content

Commit

Permalink
Change to glance.lm to allow "aov" objects to work with glance.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrtwo committed Feb 17, 2015
1 parent eab8cfc commit 6ac6356
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/lm_tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ augment.lm <- function(x, data = model.frame(x), newdata,
#'
#' @export
glance.lm <- function(x, ...) {
s <- summary(x)
# use summary.lm explicity, so that c("aov", "lm") objects can be
# summarized and glanced at
s <- summary.lm(x)
ret <- with(s, data.frame(r.squared=r.squared,
adj.r.squared=adj.r.squared,
sigma=sigma,
Expand Down

0 comments on commit 6ac6356

Please sign in to comment.