Skip to content

Commit 7f416e4

Browse files
committed
do not preserve orderedness
1 parent feb39c6 commit 7f416e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/reshape-add-margins.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ reshape_add_margins <- function(df, vars, margins = TRUE) {
88
# Prepare data frame for addition of margins
99
addAll <- function(x) {
1010
x <- addNA(x, TRUE)
11-
factor(x, levels = c(levels(x), "(all)"), exclude = NULL)
11+
factor(x, levels = c(levels(x), "(all)"), exclude = NULL, ordered = FALSE)
1212
}
1313
vars <- unique0(unlist(margin_vars))
1414
df[vars] <- lapply(df[vars], addAll)

0 commit comments

Comments
 (0)