Commit c82b125
committed
fix: strip backticks from variable names in ard_car_vif()
When variable names contain spaces (e.g. 'Marker Level'), car::vif() returns
them backtick-quoted (e.g. '`Marker Level`'). This caused a name mismatch with
gtsummary::tbl_regression(), which stores variable names without backticks,
resulting in empty VIF columns when joined via add_vif().
Use broom.helpers::.clean_backticks() to strip backticks from the variable
column before pivoting to ARD structure.
Fixes #3351 parent 7c07c87 commit c82b125
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments