powered by
Small helper that checks if a model is a regression model object.
is_model(x)
An object.
A logical, TRUE if x is a (supported) model object.
TRUE
x
This function returns TRUE if x is a model object.
# NOT RUN { data(mtcars) m <- lm(mpg ~ wt + cyl + vs, data = mtcars) is_model(m) is_model(mtcars) # }
Run the code above in your browser using DataLab