apply operator expansion (e.g. a/b -> a + a:b) to a formula term

expandGrpVar(f)

Arguments

f

a language object (an atom of a formula)

Examples

expandGrpVar(quote(x*y))
#> [[1]]
#> x
#> 
#> [[2]]
#> y
#> 
#> [[3]]
#> x:y
#> 
expandGrpVar(quote(x/y))
#> [[1]]
#> y:x
#> 
#> [[2]]
#> x
#>