Skip to content

Commit

Permalink
issue #1290 : Encoding for collapse term column
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Dec 3, 2024
1 parent a0db973 commit 4740aa5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: marginaleffects
Title: Predictions, Comparisons, Slopes, Marginal Means, and Hypothesis Tests
Version: 0.24.0.2
Version: 0.24.0.3
Authors@R:
c(person(given = "Vincent",
family = "Arel-Bundock",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* Version 0.24.0 accidentally removed the "contrast" column from the output object in calls with only one focal predictor. This column is reinstated.
* More informative warning for `lme4` and `glmmTMB` models with `re.form=NULL`

Bugs:

* Encoding issue in bayesian models with `by`. Thanks to @Koalha for report #1290.

## 0.24.0

Breaking change:
Expand Down
1 change: 1 addition & 0 deletions R/get_draws.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ average_draws <- function(data, index, draws, byfun = NULL) {
}

if (length(index) > 0) {
Encoding(data[["term"]]) <- "UTF-8"
g <- collapse::GRP(data, by = index)

if (is.null(byfun)) {
Expand Down

0 comments on commit 4740aa5

Please sign in to comment.