dot-warn_if_mismatched_contrasts function

Diagnose glimpse issues and send warnings

Diagnose glimpse issues and send warnings

glimpse_contrasts() does not modify the dataframe passed to it, which can result in mismatches between the data the user will use and the glimpse information presented. This runs many diagnostics to inform the use of such mismatches and provides suggestions on how to fix the issue.

.warn_if_mismatched_contrasts( model_data, contrast_list, model_data_name, dots_names, formulas )

Arguments

  • model_data: Data user passed to glimpse_contrasts()
  • contrast_list: List of contrasts created by enlist_contrasts()
  • model_data_name: Name of the dataframe passed to the user, will be truncated if it's a long expression that has (likely) been piped
  • dots_names: Usually "...", in this case, the ... filled in by the user (ie contrast formulas) will need to be expanded in the suggested fixes
  • formulas: Formulas passed by the user

Returns

Nothing, issues warnings to the user.

  • Maintainer: Thomas Sostarics
  • License: MIT + file LICENSE
  • Last published: 2024-10-01