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