Skip to content

Commit 33d4cae

Browse files
committed
fix var ordering
1 parent e640db1 commit 33d4cae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/descr.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,11 +491,10 @@ descr.default <- function(x,
491491
# Prepare output data -------------------------------------------------------
492492

493493
# Apply order parameter (column ordering)
494-
495494
if (identical(order, "sort")) {
496495
output <- output[sort(rownames(output)), ]
497496
} else if (length(order) > 1) {
498-
results <- results[order, ]
497+
output <- output[order, ]
499498
}
500499

501500
# Keep and order required stats from output

0 commit comments

Comments
 (0)