Skip to content

Commit

Permalink
use new argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 9, 2024
1 parent 51450a2 commit 43819c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: bayestestR
Title: Understand and Describe Bayesian Models and Posterior Distributions
Version: 0.14.0.6
Version: 0.14.0.7
Authors@R:
c(person(given = "Dominique",
family = "Makowski",
Expand Down
6 changes: 3 additions & 3 deletions R/describe_posterior.R
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,9 @@ describe_posterior.default <- function(posterior, ...) {
# column consist only of missing values, we remove those columns as well

remove_columns <- ".rowid"
if (insight::n_unique(out$Effects, na.rm = TRUE) < 2) remove_columns <- c(remove_columns, "Effects")
if (insight::n_unique(out$Component, na.rm = TRUE) < 2) remove_columns <- c(remove_columns, "Component")
if (insight::n_unique(out$Response, na.rm = TRUE) < 2) remove_columns <- c(remove_columns, "Response")
if (insight::n_unique(out$Effects, remove_na = TRUE) < 2) remove_columns <- c(remove_columns, "Effects")
if (insight::n_unique(out$Component, remove_na = TRUE) < 2) remove_columns <- c(remove_columns, "Component")
if (insight::n_unique(out$Response, remove_na = TRUE) < 2) remove_columns <- c(remove_columns, "Response")

# Restore columns order
out <- datawizard::data_remove(out[order(out$.rowid), ], remove_columns, verbose = FALSE)
Expand Down

0 comments on commit 43819c7

Please sign in to comment.