Skip to content

Commit

Permalink
simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Feb 15, 2024
1 parent f934a95 commit 80dd8fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/toTinytable.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ toTinytable <- function(table, ...) {

# entries in the first row of clabels are already colnames in out
if (nrow(clabels) > 1) {
spans <- rev(apply(clabels, 1, get_span)[1:(nrow(clabels) - 1)])
for (s in spans) {
for (i in (nrow(clabels) - 1):1) {
s <- get_span(clabels[i,])
out <- tinytable::group_tt(out, j = s)
}
}
Expand Down

0 comments on commit 80dd8fd

Please sign in to comment.