I want a vector of variable names from a formula and used the following code: and tried the second one as well.
rhs <- all.vars(update(formula, 0~.))
rhs <- all.vars(update(formula, 0~., evaluate = FALSE))
Every now and then I get the following warning, although it still executes correctly:
Warning messages:
1: Unknown column 'levels'
2: Unknown column 'levels'
3: Unknown column 'levels'
4: Unknown column 'levels'
5: Unknown column 'levels'
6: Unknown column 'levels'
What is going on? And why does this happen at random?