concept lm() in category R

This is an excerpt from Manning's book R in Action, Third Edition.
In R, the basic function for fitting a linear model is lm(). The format is

This is an excerpt from Manning's book Practical Data Science with R, Second Edition.
You want numbers b[0],...,b[n] (called the coefficients or betas) such that f(x[i,]) is as near as possible to y[i] for all (x[i,],y[i]) pairs in the training data. R supplies a one-line command to find these coefficients: lm().
It would be best if all modeling procedures had the same calling interface. The lm() and glm() packages nearly do, and glmnetUtils helps make glmnet more compatible with R’s calling interface conventions.

This is an excerpt from Manning's book R in Action, Second Edition: Data analysis and graphics with R.
In R, the basic function for fitting a linear model is lm(). The format is