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