From ca8872d6174046a9975caf19fda863cd6362bb31 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 3 Dec 2024 11:56:34 +0100 Subject: [PATCH] Use new arg-names of `data_rename()` (#784) --- DESCRIPTION | 4 ++-- R/check_collinearity.R | 2 +- R/check_model_diagnostics.R | 9 +-------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 55b3f2efc..23190a9e4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: performance Title: Assessment of Regression Models Performance -Version: 0.12.4.8 +Version: 0.12.4.12 Authors@R: c(person(given = "Daniel", family = "Lüdecke", @@ -160,4 +160,4 @@ Config/Needs/website: r-lib/pkgdown, easystats/easystatstemplate Config/rcmdcheck/ignore-inconsequential-notes: true -Remotes: easystats/insight +Remotes: easystats/datawizard, easystats/see diff --git a/R/check_collinearity.R b/R/check_collinearity.R index 2ff00e036..989483610 100644 --- a/R/check_collinearity.R +++ b/R/check_collinearity.R @@ -198,7 +198,7 @@ plot.check_collinearity <- function(x, ...) { x <- insight::format_table(x) x <- datawizard::data_rename( x, - pattern = "SE_factor", + select = "SE_factor", replacement = "Increased SE", verbose = FALSE ) diff --git a/R/check_model_diagnostics.R b/R/check_model_diagnostics.R index 9595ed968..df16f252c 100644 --- a/R/check_model_diagnostics.R +++ b/R/check_model_diagnostics.R @@ -10,16 +10,9 @@ dat$group[dat$VIF >= 5 & dat$VIF < 10] <- "moderate" dat$group[dat$VIF >= 10] <- "high" - dat <- datawizard::data_rename( - dat, - c("Term", "VIF", "SE_factor", "Component"), - c("x", "y", "se", "facet"), - verbose = FALSE - ) - dat <- datawizard::data_select( dat, - c("x", "y", "facet", "group"), + select = c(x = "Term", y = "VIF", facet = "Component", group = "group"), verbose = FALSE )