Skip to content

Commit

Permalink
improve cbind for summary_table and qable
Browse files Browse the repository at this point in the history
  • Loading branch information
dewittpe committed Mar 22, 2023
1 parent c7bd7c5 commit be23528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/summary_table.R
Expand Up @@ -399,7 +399,7 @@ cbind.qwraps2_qable <- function(...) {
clnms <- c(clnms, colnames(tabs[[i]])[-1])
tabs[[i]] <- matrix(tabs[[i]][, -1], nrow = nrow(tabs[[1]]))
} else {
clnms <- c(clnms, names(tabs)[i])
clnms <- c(clnms, ifelse(is.null(names(tabs)[i]), "", names(tabs)[i]))
tabs[[i]] <- matrix(tabs[[i]], nrow = nrow(tabs[[1]]))
}
}
Expand Down

0 comments on commit be23528

Please sign in to comment.