I know there is a small difference between $sigma and the concept of root mean squared error. So, i am wondering what is the easiest way to obtain
$sigma
To get the RMSE in one line, with just functions from base, I would use:
base
sqrt(mean(res$residuals^2))