Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions R/stargazer-internal.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ function(libname, pkgname) {

# add RHS variables and coefficients
coef.var <- .coefficient.variables(object.name)
# cbind will drop vector rows, if vector is longer than matrix. Pad matrix if this is the case.
if (length(coef.var) > nrow(.global.coef.vars.by.model)) {
.global.coef.vars.by.model <<- rbind(.global.coef.vars.by.model, .global.coef.vars.by.model[length(coef.var)-nrow(.global.coef.vars.by.model),])
}
.global.coef.vars.by.model <<- cbind(.global.coef.vars.by.model, coef.var)

temp.gcv <- rep(NA,each=1,times=max.length)
Expand Down