Derive textual representation from (partial) indices
For every entry in
ind, a character vector is returned where each entry
is a statement of the form
"<var> %in% c('<cat1>',...,'<catN>')" or "<var> == '<catt>'"
if invert==TRUE. If invert==FALSE, the negation of the above statements is returned.