Create a linear term, from a categorical variable (factor), or something that can be coerced to one.
categorical(x, y=NULL, E, s, w=NULL)
x
y
E
s
w