linear model remove variables in R code example Example: linear model remove variables in R lm(y ~ . - age - weight, data=mydata)