Skip to content

Commit

Permalink
fix #232 don't push non-intercept 1st coeff to end
Browse files Browse the repository at this point in the history
  • Loading branch information
daroczig committed Dec 8, 2015
1 parent 29dd300 commit baa3421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/S3.R
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ pander.summary.lm <- function(x, caption = attr(x, 'caption'), covariate.labels,

res <- as.data.frame(x$coeff)

if (nrow(res) > 1) {
if (rownames(res)[1] == '(Intercept)' & nrow(res) > 1) {
res <- res[c(2:nrow(res), 1), ]
}

Expand Down

0 comments on commit baa3421

Please sign in to comment.