``` r .by <- "Part" formulops::modify_formula( AVAL ~ ACTTIME | Part + Treatment + Subject, lapply(X = .by, FUN = as.name), replace = rep(list(NULL), length(.by)) ) #> AVAL ~ ACTTIME | +Treatment + Subject ``` <sup>Created on 2024-01-22 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup>