tsostarics / contrastable

Contrast Coding Utilities
https://tsostarics.github.io/contrastable/
Other
0 stars 0 forks source link

swap `as_is()` with `I()` #31

Closed tsostarics closed 2 months ago

tsostarics commented 2 months ago

instead of exporting a largely useless function with as_is(), we could probably just make use of I() provided in base

tsostarics commented 2 months ago

This is now fully implemented, just needed some tweaking to unwrap things like I(I(I(foo))). A method for use_contrasts is also available for class AsIs, which simply removes the AsIs class, sets as_is to TRUE, then dispatches to the next method as appropriate.