Skip to content

Commit

Permalink
Use new arg-names of data_rename() (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke authored Dec 3, 2024
1 parent 100cd95 commit ca8872d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion R/check_collinearity.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
9 changes: 1 addition & 8 deletions R/check_model_diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit ca8872d

Please sign in to comment.