r create linear regression model code example Example: how to do linear regression in r lm(y ~ . , data = ...)