I\'m in a situation where I have a vector full of column names for a really large data frame.
Let\'s assume: x = c(\"Name\", \"address\", \"Gender\", ......, \
x = c(\"Name\", \"address\", \"Gender\", ......, \
You may try reformulate
reformulate
reformulate(setdiff(x, 'class'), response='class') #class ~ Name + address + Gender
where 'x' is
x <- c("Name", "address", "Gender", 'class')
If R keywords are in the 'x', you can do
reformulate('.', response='class') #class ~ .