Skip to content

Commit 61c5b09

Browse files
committed
fix
1 parent 7c93746 commit 61c5b09

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

R/dominance_analysis.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,10 @@ dominance_analysis <- function(model, sets = NULL, all = NULL,
539539
)
540540
)
541541

542+
cols_to_select <- colnames(da_df_cdl)[2:length(da_df_cdl)]
542543
da_df_cdl <- datawizard::data_rename(
543544
da_df_cdl,
544-
select = names(da_df_cdl)[2:length(da_df_cdl)],
545+
select = cols_to_select,
545546
replacement = colnames(domir_res$Conditional_Dominance)
546547
)
547548
} else {
@@ -559,9 +560,10 @@ dominance_analysis <- function(model, sets = NULL, all = NULL,
559560
)
560561
)
561562

563+
cols_to_select <- colnames(da_df_cpt)[2:length(da_df_cpt)]
562564
da_df_cpt <- datawizard::data_rename(
563565
da_df_cpt,
564-
select = names(da_df_cpt)[2:length(da_df_cpt)],
566+
select = cols_to_select,
565567
replacement = colnames(domir_res$Complete_Dominance)
566568
)
567569
} else {

tests/testthat/test-dominance_analysis.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
skip_if_not_installed("performance")
22
skip_if_not_installed("domir")
3+
skip_if_not_installed("datawizard")
34

45
DA_test_model <- lm(mpg ~ vs + cyl + carb, data = mtcars)
56

0 commit comments

Comments
 (0)