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