Say I have a linear model in R. Using the model object, how can I see the number of observations used to train that model?
Let say, for instance:
library(ISLR)
lm.fit <- lm(mpg ~ acceleration + weight + horsepower + displacement, data = Auto)
lm.fit
How to see the number of observations used to train the model lm.fit?