Modeled after lme4:::expandSlash, by Doug Bates
expandAllGrpVar(bb)
a list of naked grouping variables, i.e. 1 | f
# NOT RUN {
ff <- glmmTMB:::fbx(y~1+(x|f/g))
glmmTMB:::expandAllGrpVar(ff)
glmmTMB:::expandAllGrpVar(quote(1|(f/g)/h))
glmmTMB:::expandAllGrpVar(quote(1|f/g/h))
glmmTMB:::expandAllGrpVar(quote(1|f*g))
# }
Run the code above in your browser using DataLab