Skip to content

Commit

Permalink
warning
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jun 27, 2024
1 parent 01f164f commit e1c951c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/demean.R
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ degroup <- function(x,
# with all combinations of the levels of the interaction terms. This will
# become our new "by" variable
if (length(interactions_yes)) {
## TODO: resolve this warning, or remove this feature if not correct
insight::format_warning(
"Note that de-meaning for nested data structures (i.e. interaction terms for the `by`-variable) is not yet validated. Please check the results." # nolint
)
interaction_terms <- all.vars(stats::as.formula(paste("~", interactions_yes)))
new_dat <- data_unite(
x,
Expand Down

0 comments on commit e1c951c

Please sign in to comment.